Mercurial > gnulib
changeset 17425:54c2b89ac5ec
extern-inline: port to gcc -std=c89
* m4/extern-inline.m4 (gl_EXTERN_INLINE):
Do not use __gnu_inline__ if pedantic and pre-C99.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Fri, 21 Jun 2013 12:33:40 -0700 |
parents | a0d0b52b7d06 |
children | 313b0d693d1e |
files | ChangeLog m4/extern-inline.m4 |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Jun 18 14:23:03 2013 -0700 +++ b/ChangeLog Fri Jun 21 12:33:40 2013 -0700 @@ -1,3 +1,9 @@ +2013-06-21 Paul Eggert <eggert@cs.ucla.edu> + + extern-inline: port to gcc -std=c89 + * m4/extern-inline.m4 (gl_EXTERN_INLINE): + Do not use __gnu_inline__ if pedantic and pre-C99. + 2013-06-18 Paul Eggert <eggert@cs.ucla.edu> doc: document extern-inline
--- a/m4/extern-inline.m4 Tue Jun 18 14:23:03 2013 -0700 +++ b/m4/extern-inline.m4 Fri Jun 21 12:33:40 2013 -0700 @@ -31,7 +31,8 @@ && !defined __APPLE__) # define _GL_INLINE inline # define _GL_EXTERN_INLINE extern inline -#elif 2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __APPLE__ +#elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \ + && !defined __APPLE__) # if __GNUC_GNU_INLINE__ /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__))