openexr-devel
[Top][All Lists]
Advanced

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

Re: [Openexr-devel] A few fixes before the 1.1.0 release


From: Kevin Wheatley
Subject: Re: [Openexr-devel] A few fixes before the 1.1.0 release
Date: Tue, 03 Feb 2004 10:11:16 +0000

Drew Hess wrote:
> That'd work fine for projects which use autoconf, but many don't.  And I'd
> hate to make people use autoconf just to get "restrict" to work correctly;
> pkg-config is so much simpler.
> 
> I think we'll have to do this with a header file in Imath with appropriate
> ifdefs in order to make a solution that works for everyone.

To save a lot of effort have a look at Boost's compiler detection bits
as depending on the flags some compilers 'pretend' to be other ones
right down to #defines ... and bugs! e.g.

// Is this Intel's compiler
#if defined(__INTEL_COMPILER)
#  define INTEL_CXX_VERSION __INTEL_COMPILER
#elif defined(__ICL)
#  define INTEL_CXX_VERSION __ICL
#elif defined(__ICC)
#  define INTEL_CXX_VERSION __ICC
#elif defined(__ECC)
#  define INTEL_CXX_VERSION __ECC
#endif

Kevin

-- 
| Kevin Wheatley                   | These are the opinions of |
| Senior Do-er of Technical Things | nobody and are not shared |
| Cinesite (Europe) Ltd            | by my employers           |




reply via email to

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