This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gsl with MSVC


Hello,Jose:
	First I want to thank you for your porting of gsl on MSVC.I have downloaded the tarball
version and try to build it.Seems there's some minor errors in the gsl_mode.h
	the original one is like this:
	...........
	#ifdef HAVE_INLINE
	extern inline unsigned int GSL_MODE_PREC(gsl_mode_t mt);

	extern inline unsigned int
	GSL_MODE_PREC(gsl_mode_t mt)
	{ return  (mt & (unsigned int)7); }
	#else  /* HAVE_INLINE */
	#define GSL_MODE_PREC(mt) ((mt) & (unsigned int)7)
	#endif /* HAVE_INLINE */
	................

	the modified one is like this:
	
	#ifdef HAVE_INLINE
	#ifdef _MSC_VER 
	#define GSL_MODE_PREC(mt) ((mt) & (unsigned int)7)
	#else
	extern inline unsigned int GSL_MODE_PREC(gsl_mode_t mt);

	extern 
	inline unsigned int
	GSL_MODE_PREC(gsl_mode_t mt)
	{ return  (mt & (unsigned int)7); }
	#endif /* _MSC_VER */
	#else  /* HAVE_INLINE */
	extern inline unsigned int GSL_MODE_PREC(gsl_mode_t mt);
	#define GSL_MODE_PREC(mt) ((mt) & (unsigned int)7)
	#endif /* HAVE_INLINE */
	
	seems there's something wrong with this,I comment out this line in order to build
	/*extern inline unsigned int GSL_MODE_PREC(gsl_mode_t mt);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]