From da0eabc0d3e8575e2b1112820adcbe34b6075775 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 12 Oct 2007 23:02:18 -0700 Subject: [PATCH] * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic "warning: C99 inline functions are not supported; using GNU89". --- ChangeLog | 5 +++++ lib/argp-fmtstream.h | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9b76818b91..a91048b663 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-12 Paul Eggert + + * 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 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power diff --git a/lib/argp-fmtstream.h b/lib/argp-fmtstream.h index 93fa651999..114e3a5586 100644 --- a/lib/argp-fmtstream.h +++ b/lib/argp-fmtstream.h @@ -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 -- 2.30.2