X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fextern-inline.m4;h=600c8d3fa17a8d89a14d583aaec97c929807672f;hb=03ea4328ae1ea7e985f7fd9a42ebf77bc64bd47c;hp=12f24fab95f244d0d0387ba57dddbfab08036a5d;hpb=eb872c43a7bfea71a5a3bb95b6817cc3d7c0966f;p=gnulib.git diff --git a/m4/extern-inline.m4 b/m4/extern-inline.m4 index 12f24fab9..600c8d3fa 100644 --- a/m4/extern-inline.m4 +++ b/m4/extern-inline.m4 @@ -18,7 +18,9 @@ AC_DEFUN([gl_EXTERN_INLINE], . _GL_INLINE_HEADER_END contains useful stuff to put in the same include file, after uses of _GL_INLINE. */ -#if __GNUC__ ? __GNUC_STDC_INLINE__ : 199901L <= __STDC_VERSION__ +#if (__GNUC__ \ + ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \ + : 199901L <= __STDC_VERSION__) # define _GL_INLINE inline # define _GL_EXTERN_INLINE extern inline #elif 2 < __GNUC__ + (7 <= __GNUC_MINOR__) @@ -35,7 +37,7 @@ AC_DEFUN([gl_EXTERN_INLINE], #endif #if 4 < __GNUC__ + (6 <= __GNUC_MINOR__) -# if __GNUC_STDC_INLINE__ +# if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ # define _GL_INLINE_HEADER_CONST_PRAGMA # else # define _GL_INLINE_HEADER_CONST_PRAGMA \