Mercurial > hg > xemacs-beta
changeset 1744:e4f996d69637
[xemacs-hg @ 2003-10-14 14:40:08 by james]
Fix compiler.h induced warnings and update depend.
author | james |
---|---|
date | Tue, 14 Oct 2003 14:40:27 +0000 |
parents | 543769b89fed |
children | d91e7fd568fd |
files | src/ChangeLog src/compiler.h src/depend |
diffstat | 3 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 <james@xemacs.org> + + * compiler.h: Check __GNUC_PATCHLEVEL__ definition. + * depend: Regenerate. + 2003-10-13 Jerry James <james@xemacs.org> * dumper.h: Use {BEGIN,END}_C_DECLS instead of explicit #ifdef.
--- 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. */
--- 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)