changeset 9336:5c22ca8dc833

* lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic "warning: C99 inline functions are not supported; using GNU89".
author Paul Eggert <eggert@cs.ucla.edu>
date Fri, 12 Oct 2007 23:02:18 -0700
parents 5f9727c11975
children 8df9b5f6609e
files ChangeLog lib/argp-fmtstream.h
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+	* lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
+	"warning: C99 inline functions are not supported; using GNU89".
+
 2007-10-12  Bruno Haible  <bruno@clisp.org>
 
 	* lib/ceil.c (FUNC): Avoid rounding errors for values near a power
--- a/lib/argp-fmtstream.h
+++ b/lib/argp-fmtstream.h
@@ -197,7 +197,13 @@
 #endif
 
 #ifndef ARGP_FS_EI
-#define ARGP_FS_EI extern inline
+# if __GNUC_GNU_INLINE__
+#  define ARGP_FS_EI extern inline __attribute__ ((__gnu_inline__))
+# elif __GNUC__
+#  define ARGP_FS_EI extern inline
+# else
+#  define ARGP_FS_EI inline
+# endif
 #endif
 
 ARGP_FS_EI size_t