C99 and inline

Jerry James james at xemacs.org
Mon Jan 7 14:38:04 EST 2008


I can't seem to reproduce the C99 + inline problem on my machine.  If
I'm not mistaken, all of the reports of this problem so far have come
from Mac OS X users.  Would one of you please try applying this patch
and building with -std=c99 or -std=gnu99 and see if it works?

diff -r 4363b75330ca src/config.h.in
--- a/src/config.h.in	Mon Jan 07 12:07:55 2008 -0700
+++ b/src/config.h.in	Mon Jan 07 12:34:24 2008 -0700
@@ -1086,7 +1086,8 @@ extern "C" {
    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

Thanks!
-- 
Jerry James
http://loganjerry.googlepages.com/



More information about the XEmacs-Beta mailing list