Mercurial > hg > xemacs-beta
changeset 4389:4c5cd87620e4
Check that __STDC_VERSION__ is defined before examining it.
2008-01-09 Aidan Kehoe <kehoea@parhasard.net>
* config.h.in:
Check that __STDC_VERSION__ is defined before examining its
value. Eliminates a Cygwin warning.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Wed, 09 Jan 2008 00:53:02 +0100 |
parents | 1a14c304cb8e |
children | 5902c5214a77 |
files | src/ChangeLog src/config.h.in |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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-09 Aidan Kehoe <kehoea@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@parhasard.net> * text.h (MAX_XETCHAR_SIZE): Remove, eliminating a redefinition
--- 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 @@ 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