diff options
author | Bruno Haible <bruno@clisp.org> | 2007-03-31 15:16:05 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-03-31 15:16:05 +0000 |
commit | 0e4abdfd81e11c2bb8793a4f8d7c7636b948bad9 (patch) | |
tree | 25544fea711675f97074990103befe7f6b9ab2a8 /src/output.cc | |
parent | 89f5335289220036d0bc050d1cffd87be2202614 (diff) | |
download | gperf-0e4abdfd81e11c2bb8793a4f8d7c7636b948bad9.tar.gz |
Change generated code after the meaning of __inline is changed in GCC 4.3.
Diffstat (limited to 'src/output.cc')
-rw-r--r-- | src/output.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/output.cc b/src/output.cc index d409ab4..c0c8e6c 100644 --- a/src/output.cc +++ b/src/output.cc @@ -1,5 +1,5 @@ /* Output routines. - Copyright (C) 1989-1998, 2000, 2002-2004, 2006 Free Software Foundation, Inc. + Copyright (C) 1989-1998, 2000, 2002-2004, 2006-2007 Free Software Foundation, Inc. Written by Douglas C. Schmidt <schmidt@ics.uci.edu> and Bruno Haible <bruno@clisp.org>. @@ -1884,8 +1884,14 @@ Output::output_lookup_function () const { /* Output the function's head. */ if (option[KRC] | option[C] | option[ANSIC]) + /* GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 + inline semantics, unless -fgnu89-inline is used. It defines a macro + __GNUC_STDC_INLINE__ to indicate this situation. */ printf ("#ifdef __GNUC__\n" "__inline\n" + "#ifdef __GNUC_STDC_INLINE__\n" + "__attribute__ ((__gnu_inline__))\n" + "#endif\n" "#endif\n"); printf ("%s%s\n", |