changeset: 4389:4c5cd87620e4cf6f8f3101f5ed972f774d2df4c6
tag: tip
user: Aidan Kehoe <kehoea(a)parhasard.net>
date: Wed Jan 09 00:53:02 2008 +0100
files: src/ChangeLog src/config.h.in
description:
Check that __STDC_VERSION__ is defined before examining it.
2008-01-09 Aidan Kehoe <kehoea(a)parhasard.net>
* config.h.in:
Check that __STDC_VERSION__ is defined before examining its
value. Eliminates a Cygwin warning.
diff -r 1a14c304cb8ead170dfb5edbbbf341724629f2d1 -r
4c5cd87620e4cf6f8f3101f5ed972f774d2df4c6 src/ChangeLog
--- a/src/ChangeLog Wed Jan 09 00:28:17 2008 +0100
+++ b/src/ChangeLog Wed Jan 09 00:53:02 2008 +0100
@@ -1,3 +1,9 @@ 2008-01-08 Aidan Kehoe <kehoea@parhasa
+2008-01-09 Aidan Kehoe <kehoea(a)parhasard.net>
+
+ * config.h.in:
+ Check that __STDC_VERSION__ is defined before examining its
+ value. Eliminates a Cygwin warning.
+
2008-01-08 Aidan Kehoe <kehoea(a)parhasard.net>
* text.h (MAX_XETCHAR_SIZE): Remove, eliminating a redefinition
diff -r 1a14c304cb8ead170dfb5edbbbf341724629f2d1 -r
4c5cd87620e4cf6f8f3101f5ed972f774d2df4c6 src/config.h.in
--- a/src/config.h.in Wed Jan 09 00:28:17 2008 +0100
+++ b/src/config.h.in Wed Jan 09 00:53:02 2008 +0100
@@ -1086,8 +1086,8 @@ extern "C" {
Use `inline static' to define inline functions in .c files.
See the Internals manual for examples and more information. */
-#if __STDC_VERSION__ >= 199901L || defined (__cplusplus) || \
- ! defined (__GNUC__) || ! defined(emacs)
+#if (defined ( __STDC_VERSION__) && __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
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches