summaryrefslogtreecommitdiffstats
path: root/gl/m4/extern-inline.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/extern-inline.m4')
-rw-r--r--gl/m4/extern-inline.m413
1 files changed, 9 insertions, 4 deletions
diff --git a/gl/m4/extern-inline.m4 b/gl/m4/extern-inline.m4
index c001b1cf..d4fe6d82 100644
--- a/gl/m4/extern-inline.m4
+++ b/gl/m4/extern-inline.m4
@@ -1,9 +1,12 @@
1dnl 'extern inline' a la ISO C99. 1# extern-inline.m4
2 2# serial 1
3dnl Copyright 2012-2023 Free Software Foundation, Inc. 3dnl Copyright 2012-2025 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
7dnl This file is offered as-is, without any warranty.
8
9dnl 'extern inline' a la ISO C99.
7 10
8AC_DEFUN([gl_EXTERN_INLINE], 11AC_DEFUN([gl_EXTERN_INLINE],
9[ 12[
@@ -79,7 +82,8 @@ AC_DEFUN([gl_EXTERN_INLINE],
79# define _GL_EXTERN_INLINE_STDHEADER_BUG 82# define _GL_EXTERN_INLINE_STDHEADER_BUG
80#endif 83#endif
81#if ((__GNUC__ \ 84#if ((__GNUC__ \
82 ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \ 85 ? (defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
86 && !defined __PCC__) \
83 : (199901L <= __STDC_VERSION__ \ 87 : (199901L <= __STDC_VERSION__ \
84 && !defined __HP_cc \ 88 && !defined __HP_cc \
85 && !defined __PGI \ 89 && !defined __PGI \
@@ -89,6 +93,7 @@ AC_DEFUN([gl_EXTERN_INLINE],
89# define _GL_EXTERN_INLINE extern inline 93# define _GL_EXTERN_INLINE extern inline
90# define _GL_EXTERN_INLINE_IN_USE 94# define _GL_EXTERN_INLINE_IN_USE
91#elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \ 95#elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \
96 && !defined __PCC__ \
92 && !defined _GL_EXTERN_INLINE_STDHEADER_BUG) 97 && !defined _GL_EXTERN_INLINE_STDHEADER_BUG)
93# if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__ 98# if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__
94 /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ 99 /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */