Mercurial > hg > xemacs-beta
changeset 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 | 4363b75330ca |
children | 1a14c304cb8e |
files | src/ChangeLog src/config.h.in |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Mon Jan 07 12:07:55 2008 -0700 +++ b/src/ChangeLog Tue Jan 08 12:47:42 2008 -0700 @@ -1,3 +1,7 @@ +2008-01-08 Jerry James <james@xemacs.org> + + * config.h.in (INLINE_HEADER): adapt to C99 inline semantics. + 2008-01-07 Jerry James <james@xemacs.org> * xemacs.def.in.in: Clarify the copyright and license.
--- 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