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