changeset 3493:cb20b201d5e6

[xemacs-hg @ 2006-07-07 19:51:13 by aidan] Small bug in the INLINE_HEADER macro.
author aidan
date Fri, 07 Jul 2006 19:51:15 +0000
parents d7af9dc028f0
children f5e111f9411d
files src/ChangeLog src/config.h.in
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Jul 06 21:51:03 2006 +0000
+++ b/src/ChangeLog	Fri Jul 07 19:51:15 2006 +0000
@@ -1,3 +1,10 @@
+2006-07-07  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* config.h.in:
+	Don't declare inline macros as `extern' if we're building a
+	standalone program, because their extern definitions in inline.c
+	are unlikely to be included.
+
 2006-06-24  Stephen J. Turnbull  <stephen@xemacs.org>
 
 	* gc.c (gc_mark_root_set): Quiet GCC 4 whining about unused values.
--- a/src/config.h.in	Thu Jul 06 21:51:03 2006 +0000
+++ b/src/config.h.in	Fri Jul 07 19:51:15 2006 +0000
@@ -1066,7 +1066,7 @@
    Use `inline static' to define inline functions in .c files.
    See the Internals manual for examples and more information. */
 
-#if defined (__cplusplus) || ! defined (__GNUC__)
+#if defined (__cplusplus) || ! defined (__GNUC__) || ! defined(emacs)
 # define INLINE_HEADER inline static
 #elif defined (DONT_EXTERN_INLINE_HEADER_FUNCTIONS)
 # define INLINE_HEADER inline