On Saturday 12 April 2008 15:19, Ludovic Courtès wrote:
> Hi Bruno,
> 
> Bruno Haible <[EMAIL PROTECTED]> writes:
> 
> > The #ifdefs for determining which variant of 'inline' or 'extern inline'
> > don't work any more with the Apple GCC compiler on MacOS X.
> 
> FWIW, I had reported these issues too:
> 
>   http://thread.gmane.org/gmane.comp.lib.gmp.bugs/1979

Oh, sorry for the duplicate report. Your report does not appear in
http://lists.gnu.org/archive/html/bug-gmp/
whereas mine does. And your report appears on gmane, but mine doesn't.
Are these two different maiing lists??

> >  #ifdef __GNUC__
> > -#ifdef __GNUC_STDC_INLINE__
> > +#ifdef __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)
> >  #define __GMP_EXTERN_INLINE extern __inline__ __attribute__ 
> > ((__gnu_inline__))
> 
> This would break with GCC < 4.2 because the `gnu_inline' attribute is
> supported starting from GCC 4.2.

Yeah, that was a syntax error of mine. I meant #if, not #ifdef:

#ifdef __GNUC__
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)
#define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__))
#define __GMP_INLINE_PROTOTYPES  1
#elif !(defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && 
__STDC_VERSION__ >= 199901L)
#define __GMP_EXTERN_INLINE      extern __inline__
#define __GMP_INLINE_PROTOTYPES  1
#endif
#endif

Bruno



Reply via email to