Mercurial > hg > octave-nkf > gnulib-hg
changeset 17528:cf67b8cf7424
extern-inline: make safe for -Wundef usage
Reported by Vladimir 'phcoder' Serbinenko in
https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
* m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
Signed-off-by: Eric Blake <eblake@redhat.com>
author | Eric Blake <eblake@redhat.com> |
---|---|
date | Fri, 18 Oct 2013 10:30:42 -0600 |
parents | 78e9001f9ab0 |
children | 0bec564dbf56 |
files | ChangeLog m4/extern-inline.m4 |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-10-18 Eric Blake <eblake@redhat.com> + + extern-inline: make safe for -Wundef usage + Reported by Vladimir 'phcoder' Serbinenko in + https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html + * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc. + 2013-10-16 Paul Eggert <eggert@cs.ucla.edu> mkfifo-tests, etc.: allow HP-UX 11.11 bug
--- a/m4/extern-inline.m4 +++ b/m4/extern-inline.m4 @@ -1,3 +1,4 @@ +# extern-inline.m4 serial 2 dnl 'extern inline' a la ISO C99. dnl Copyright 2012-2013 Free Software Foundation, Inc. @@ -41,7 +42,7 @@ # define _GL_EXTERN_INLINE_IN_USE #elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \ && !defined _GL_EXTERN_INLINE_APPLE_BUG) -# if __GNUC_GNU_INLINE__ +# if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__ /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) # else