Mercurial > hg > octave-kai > gnulib-hg
changeset 17112:03d96692c889
extern-inline: provide a -Wundef safe config.h
* m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
"#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
to produce a -Wundef warning free config.h.
author | Akim Demaille <akim@lrde.epita.fr> |
---|---|
date | Tue, 25 Sep 2012 13:58:12 +0200 |
parents | b8250ce33952 |
children | 1814049458e1 |
files | ChangeLog m4/extern-inline.m4 |
diffstat | 2 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-09-28 Akim Demaille <akim@lrde.epita.fr> + + extern-inline: provide a -Wundef safe config.h + * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect + "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__" + to produce a -Wundef warning free config.h. + 2012-09-26 Paul Eggert <eggert@cs.ucla.edu> hash-pjw: relax license to LGPLv2+
--- a/m4/extern-inline.m4 +++ b/m4/extern-inline.m4 @@ -18,7 +18,9 @@ <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113>. _GL_INLINE_HEADER_END contains useful stuff to put in the same include file, after uses of _GL_INLINE. */ -#if __GNUC__ ? __GNUC_STDC_INLINE__ : 199901L <= __STDC_VERSION__ +#if (__GNUC__ \ + ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \ + : 199901L <= __STDC_VERSION__) # define _GL_INLINE inline # define _GL_EXTERN_INLINE extern inline #elif 2 < __GNUC__ + (7 <= __GNUC_MINOR__) @@ -35,7 +37,7 @@ #endif #if 4 < __GNUC__ + (6 <= __GNUC_MINOR__) -# if __GNUC_STDC_INLINE__ +# if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ # define _GL_INLINE_HEADER_CONST_PRAGMA # else # define _GL_INLINE_HEADER_CONST_PRAGMA \