aboutsummaryrefslogtreecommitdiffstats
path: root/m4/extern-inline.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/extern-inline.m4')
-rw-r--r--m4/extern-inline.m414
1 files changed, 11 insertions, 3 deletions
diff --git a/m4/extern-inline.m4 b/m4/extern-inline.m4
index 0152f29326b..94b46dde07d 100644
--- a/m4/extern-inline.m4
+++ b/m4/extern-inline.m4
@@ -21,13 +21,21 @@ AC_DEFUN([gl_EXTERN_INLINE],
21 Suppress extern inline with HP-UX cc, as it appears to be broken; see 21 Suppress extern inline with HP-UX cc, as it appears to be broken; see
22 <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>. 22 <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
23 23
24 Suppress the use of extern inline on Apple's platforms, 24 Suppress extern inline with Sun C in standards-conformance mode, as it
25 as Libc-825.25 (2012-09-19) is incompatible with it; see 25 mishandles inline functions that call each other. E.g., for 'inline void f
26 (void) { } inline void g (void) { f (); }', c99 incorrectly complains
27 'reference to static identifier "f" in extern inline function'.
28 This bug was observed with Sun C 5.12 SunOS_i386 2011/11/16.
29
30 Suppress the use of extern inline on Apple's platforms, as Libc at least
31 through Libc-825.26 (2013-04-09) is incompatible with it; see, e.g.,
26 <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>. 32 <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
27 Perhaps Apple will fix this some day. */ 33 Perhaps Apple will fix this some day. */
28#if ((__GNUC__ \ 34#if ((__GNUC__ \
29 ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \ 35 ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
30 : 199901L <= __STDC_VERSION__ && !defined __HP_cc) \ 36 : (199901L <= __STDC_VERSION__ \
37 && !defined __HP_cc \
38 && !(defined __SUNPRO_C && __STDC__))) \
31 && !defined __APPLE__) 39 && !defined __APPLE__)
32# define _GL_INLINE inline 40# define _GL_INLINE inline
33# define _GL_EXTERN_INLINE extern inline 41# define _GL_EXTERN_INLINE extern inline