comparison 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
comparison
equal deleted inserted replaced
1743:543769b89fed 1744:e4f996d69637
73 # define BEGIN_C_DECLS 73 # define BEGIN_C_DECLS
74 # define END_C_DECLS 74 # define END_C_DECLS
75 # endif 75 # endif
76 #endif 76 #endif
77 77
78 /* Macro simplification for non-GNU compilers */ 78 /* Macro simplification for non-GNU compilers and older gccs that did not
79 define all of these symbols */
79 #ifndef __GNUC__ 80 #ifndef __GNUC__
80 #define __GNUC__ 0 81 #define __GNUC__ 0
82 #endif
83 #ifndef __GNUC_MINOR__
81 #define __GNUC_MINOR__ 0 84 #define __GNUC_MINOR__ 0
85 #endif
86 #ifndef __GNUC_PATCHLEVEL__
82 #define __GNUC_PATCHLEVEL__ 0 87 #define __GNUC_PATCHLEVEL__ 0
83 #endif /* __GNUC__ */ 88 #endif
84 89
85 /* Simplify testing for specific GCC versions. This also works for non-GCC 90 /* Simplify testing for specific GCC versions. This also works for non-GCC
86 compilers, where GCC_VERSION is zero. */ 91 compilers, where GCC_VERSION is zero. */
87 #ifndef NEED_GCC 92 #ifndef NEED_GCC
88 #define NEED_GCC(major,minor,patch) (major * 1000000 + minor * 1000 + patch) 93 #define NEED_GCC(major,minor,patch) (major * 1000000 + minor * 1000 + patch)