bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gsl] Compiling 1.9 for different Endian target


From: Brian Gough
Subject: Re: [Bug-gsl] Compiling 1.9 for different Endian target
Date: Tue, 19 Jun 2007 09:58:04 +0100
User-agent: Wanderlust/2.14.0 (Africa) Emacs/21.3 Mule/5.0 (SAKAKI)

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]