At Fri, 15 Jun 2007 15:25:16 -0700,
Scott Buchanan wrote:
> My workaround was to hand edit the config.h file and add the  
> following (the first line was put there by .configure.
> 
> #define HAVE_DARWIN86_IEEE_INTERFACE 1
> #ifdef __BIG_ENDIAN__
> #undef HAVE_DARWIN86_IEEE_INTERFACE
> #define HAVE_DARWIN_IEEE_INTERFACE 1
> #endif
> 
> This takes advantage of the gcc preprocessor __BIG_ENDIAN__ that's  
> available.

Hello,

Thanks for the suggestion.

Does the compiler define any other macro that can be used to
distinguish between the platforms?  For example, __i386__ vs __ppc__
rather than testing it indirectly through the endianness.

To see all the definitions use

  gcc -E -dM -x c /dev/null

-- 
best regards,

Brian Gough
(GSL Maintainer)

Network Theory Ltd,
Commercial support for GSL --- http://www.network-theory.com/gsl/


_______________________________________________
Bug-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gsl

Reply via email to