From: Paul Eggert Date: Sat, 13 Oct 2007 06:02:18 +0000 (-0700) Subject: * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da0eabc0d3e8575e2b1112820adcbe34b6075775;p=pspp * 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 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