# HG changeset patch # User Paul Eggert # Date 1192255338 25200 # Node ID 5c22ca8dc8330d81111a725a3ffd1359aa06c51f # Parent 5f9727c119754a52c76a037a67d2daf0be318bc4 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic "warning: C99 inline functions are not supported; using GNU89". diff --git a/ChangeLog b/ChangeLog --- 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 --- 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