# HG changeset patch # User james # Date 1066142427 0 # Node ID e4f996d6963748dcdc1ae92a3e91b7112c90ad67 # Parent 543769b89fed4f285e40bdf432d676922e3b09ba [xemacs-hg @ 2003-10-14 14:40:08 by james] Fix compiler.h induced warnings and update depend. diff -r 543769b89fed -r e4f996d69637 src/ChangeLog --- a/src/ChangeLog Tue Oct 14 05:03:13 2003 +0000 +++ b/src/ChangeLog Tue Oct 14 14:40:27 2003 +0000 @@ -1,3 +1,8 @@ +2003-10-14 Jerry James + + * compiler.h: Check __GNUC_PATCHLEVEL__ definition. + * depend: Regenerate. + 2003-10-13 Jerry James * dumper.h: Use {BEGIN,END}_C_DECLS instead of explicit #ifdef. diff -r 543769b89fed -r e4f996d69637 src/compiler.h --- a/src/compiler.h Tue Oct 14 05:03:13 2003 +0000 +++ b/src/compiler.h Tue Oct 14 14:40:27 2003 +0000 @@ -75,12 +75,17 @@ # endif #endif -/* Macro simplification for non-GNU compilers */ +/* Macro simplification for non-GNU compilers and older gccs that did not + define all of these symbols */ #ifndef __GNUC__ #define __GNUC__ 0 +#endif +#ifndef __GNUC_MINOR__ #define __GNUC_MINOR__ 0 +#endif +#ifndef __GNUC_PATCHLEVEL__ #define __GNUC_PATCHLEVEL__ 0 -#endif /* __GNUC__ */ +#endif /* Simplify testing for specific GCC versions. This also works for non-GCC compilers, where GCC_VERSION is zero. */ diff -r 543769b89fed -r e4f996d69637 src/depend --- a/src/depend Tue Oct 14 05:03:13 2003 +0000 +++ b/src/depend Tue Oct 14 14:40:27 2003 +0000 @@ -11,7 +11,7 @@ LISP_H= #else CONFIG_H=config.h -LISP_H=lisp.h config.h dumper.h general-slots.h lrecord.h symeval.h symsinit.h text.h $(LISP_UNION_H) +LISP_H=lisp.h compiler.h config.h dumper.h general-slots.h lrecord.h symeval.h symsinit.h text.h $(LISP_UNION_H) #endif #if defined(HAVE_MS_WINDOWS)