changeset 37208:1eb5f45967c9

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 53cc6ef9fb04
children f23811891fc5
files ChangeLog m4/extern-inline.m4
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Oct 16 07:47:53 2013 -0700
+++ b/ChangeLog	Fri Oct 18 10:30:42 2013 -0600
@@ -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	Wed Oct 16 07:47:53 2013 -0700
+++ b/m4/extern-inline.m4	Fri Oct 18 10:30:42 2013 -0600
@@ -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