[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: stdarg: don't put compiler in gnu99 mode by default
From: |
Ludovic Courtès |
Subject: |
Re: stdarg: don't put compiler in gnu99 mode by default |
Date: |
Sat, 12 Apr 2008 15:19:58 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Hi Bruno,
Bruno Haible <address@hidden> 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
I can't find the source repository (!) so I don't know whether a similar
patch was applied.
> #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.
Thanks,
Ludovic.