diff src/config.h.in @ 4387:9aa16aa434b6

Adapt INLINE_HEADER to the C99 inline semantics. 2008-01-08 Jerry James <james@xemacs.org> * config.h.in (INLINE_HEADER): adapt to C99 inline semantics.
author Jerry James <james@xemacs.org>
date Tue, 08 Jan 2008 12:47:42 -0700
parents dfd878799ef0
children 4c5cd87620e4
line wrap: on
line diff
--- a/src/config.h.in	Mon Jan 07 12:07:55 2008 -0700
+++ b/src/config.h.in	Tue Jan 08 12:47:42 2008 -0700
@@ -1086,7 +1086,8 @@
    Use `inline static' to define inline functions in .c files.
    See the Internals manual for examples and more information. */
 
-#if defined (__cplusplus) || ! defined (__GNUC__) || ! defined(emacs)
+#if __STDC_VERSION__ >= 199901L || defined (__cplusplus) || \
+    ! defined (__GNUC__) || ! defined(emacs)
 # define INLINE_HEADER inline static
 #elif defined (DONT_EXTERN_INLINE_HEADER_FUNCTIONS)
 # define INLINE_HEADER inline