[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 01/11] lexi.c: Fix conditionals around the GNU inline attribute
From: |
Tim Hentenaar |
Subject: |
[PATCH 01/11] lexi.c: Fix conditionals around the GNU inline attribute |
Date: |
Mon, 15 Jun 2015 21:52:52 +0200 |
---
ChangeLog | 4 ++++
src/lexi.c | 6 ++++++
2 files changed, 10 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index bb7ea63..5c0b3d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-06-13 Tim Hentenaar <address@hidden>
+ * lexi.c: Fix a compilation error related to the presence of
+ the __gnu_inlne__ attribute on the functions in gperf.c/gperf-cc.c
+
2014-04-07 Andrew Shadura <address@hidden>
* Don't add extra 'const' keyword to C++ programs (closes Debian bugs
#507173 and #349065).
diff --git a/src/lexi.c b/src/lexi.c
index 19e9059..89d469a 100644
--- a/src/lexi.c
+++ b/src/lexi.c
@@ -207,6 +207,9 @@ int main (void)
/* Include code generated by gperf */
#ifdef __GNUC__
__inline
+#ifdef __GNUC_STDC_INLINE__
+__attribute__ ((__gnu_inline__))
+#endif
#endif
templ_ty *is_reserved (const char *str, unsigned int len);
@@ -221,6 +224,9 @@ templ_ty *is_reserved (const char *str, unsigned int len);
#ifdef __GNUC__
__inline
+#ifdef __GNUC_STDC_INLINE__
+__attribute__ ((__gnu_inline__))
+#endif
#endif
templ_ty *is_reserved_cc (register const char *str, register unsigned int len);
--
2.3.6
- [PATCH 00/11] Bugfixes and a few new options, Tim Hentenaar, 2015/06/15
- [PATCH 06/11] Automatically include 'size_t', 'wchar_t' and 'ptrdiff_t' as a rw_decl tokens, since they're guaranteed to be available in ANSI C., Tim Hentenaar, 2015/06/15
- [PATCH 04/11] parse: Write out token names when dumping the parser's stack, Tim Hentenaar, 2015/06/15
- [PATCH 01/11] lexi.c: Fix conditionals around the GNU inline attribute,
Tim Hentenaar <=
- [PATCH 02/11] Fix html doc generation, Tim Hentenaar, 2015/06/15
- [PATCH 03/11] Fix regression introduced in hg revision 25c27d429590, Tim Hentenaar, 2015/06/15
- [PATCH 09/11] Fix handling of block comments after braces, Tim Hentenaar, 2015/06/15
- [PATCH 07/11] Add an option to use spaces for aligment when using tabs, Tim Hentenaar, 2015/06/15
- [PATCH 08/11] Adjust -npcs so that if set, no space will be added between a function pointer's name and its argument list., Tim Hentenaar, 2015/06/15
- [PATCH 05/11] Add an option to allow single-line conditionals, Tim Hentenaar, 2015/06/15
- [PATCH 11/11] Fix formatting of struct initializer lists, and add -sar, Tim Hentenaar, 2015/06/15