bug-indent
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]