* lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 13 Oct 2007 06:02:18 +0000 (23:02 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 13 Oct 2007 06:02:18 +0000 (23:02 -0700)
"warning: C99 inline functions are not supported; using GNU89".

ChangeLog
lib/argp-fmtstream.h

index 9b76818b91d994a6e5935d36b0fd21f4c0a85b89..a91048b663a7e80b45c516bfa1cb11f81d7c9d0e 100644 (file)
--- 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
index 93fa651999a46010b829ee0d1cc106d0061c19d1..114e3a5586919ead34d09fd6417eee32a9f5a4d6 100644 (file)
@@ -197,7 +197,13 @@ extern int __argp_fmtstream_ensure (argp_fmtstream_t __fs, size_t __amount);
 #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