[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Undefined __GNUC_GNU_INLINE__
From: |
Vladimir 'φ-coder/phcoder' Serbinenko |
Subject: |
Undefined __GNUC_GNU_INLINE__ |
Date: |
Fri, 18 Oct 2013 17:30:15 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9 |
When testing with old gcc, I found out that gnulib uses
__GNUC_GNU_INLINE__ without checking whether it's defined first. I
propose following fix:
=== modified file 'm4/extern-inline.m4'
--- m4/extern-inline.m4 2013-04-11 19:12:46 +0000
+++ m4/extern-inline.m4 2013-10-18 14:55:19 +0000
@@ -32,7 +32,7 @@
# define _GL_INLINE inline
# define _GL_EXTERN_INLINE extern inline
#elif 2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __APPLE__
-# if __GNUC_GNU_INLINE__
+# if defined (__GNUC_GNU_INLINE__) && __GNUC_GNU_INLINE__
/* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */
# define _GL_INLINE extern inline __attribute__ ((__gnu_inline__))
# else
signature.asc
Description: OpenPGP digital signature
- Undefined __GNUC_GNU_INLINE__,
Vladimir 'φ-coder/phcoder' Serbinenko <=