diff src/compiler.h @ 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 19b0fcab3f47
line wrap: on
line diff
--- 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. */