Lines Matching +full:version +full:- +full:minor
1 /* -*- Mode: c; tab-width: 8; indent-tabs-mode: 1; c-basic-offset: 8; -*- */
41 * https://clang.llvm.org/docs/LanguageExtensions.html#has-attribute
43 * in some version (which version?); it has been picked up by GCC 5.0.
71 * Instead, we check whether the pre-defined macros for particular
72 * compilers are defined and, if not, define the "is this version XXX
73 * or a later version of this compiler" macros as 0.
77 * Check whether this is GCC major.minor or a later release, or some
78 * compiler that claims to be "just like GCC" of that version or a
84 #define ND_IS_AT_LEAST_GNUC_VERSION(major, minor) 0 argument
87 #define ND_IS_AT_LEAST_GNUC_VERSION(major, minor) \ argument
89 (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor)))
93 * Check whether this is Clang major.minor or a later release.
98 #define ND_IS_AT_LEAST_CLANG_VERSION(major, minor) 0 argument
101 #define ND_IS_AT_LEAST_CLANG_VERSION(major, minor) \ argument
103 (__clang_major__ == (major) && __clang_minor__ >= (minor)))
107 * Check whether this is Sun C/SunPro C/Oracle Studio major.minor
110 * The version number in __SUNPRO_C is encoded in hex BCD, with the
111 * uppermost hex digit being the major version number, the next
112 * one or two hex digits being the minor version number, and
113 * the last digit being the patch version.
115 * It represents the *compiler* version, not the product version;
126 #define ND_IS_AT_LEAST_SUNC_VERSION(major,minor) 0 argument
129 #define ND_SUNPRO_VERSION_TO_BCD(major, minor) \ argument
130 (((minor) >= 10) ? \
131 (((major) << 12) | (((minor)/10) << 8) | (((minor)%10) << 4)) : \
132 (((major) << 8) | ((minor) << 4)))
133 #define ND_IS_AT_LEAST_SUNC_VERSION(major,minor) \ argument
134 (__SUNPRO_C >= ND_SUNPRO_VERSION_TO_BCD((major), (minor)))
138 * Check whether this is IBM XL C major.minor or a later release.
140 * The version number in __xlC__ has the major version in the
141 * upper 8 bits and the minor version in the lower 8 bits.
149 #define ND_IS_AT_LEAST_XL_C_VERSION(major,minor) 0 argument
155 * Later Linux version of XL C; use __ibmxl_version__ to test
156 * the version.
158 #define ND_IS_AT_LEAST_XL_C_VERSION(major, minor) \ argument
160 (__ibmxl_version__ == (major) && __ibmxl_release__ >= (minor)))
167 * __ibmxl__ not defined; use __xlC__ to test the version.
169 #define ND_IS_AT_LEAST_XL_C_VERSION(major, minor) \ argument
170 (__xlC__ >= (((major) << 8) | (minor)))
177 * Check whether this is HP aC++/HP C major.minor or a later release.
179 * The version number in __HP_aCC is encoded in zero-padded decimal BCD,
181 * the major version number, the next two decimal digits being the minor
182 * version number, and the last two decimal digits being the patch version.
183 * (Strip off the A., remove the . between the major and minor version
189 #define ND_IS_AT_LEAST_HP_C_VERSION(major,minor) 0 argument
192 #define ND_IS_AT_LEAST_HP_C_VERSION(major,minor) \ argument
193 (__HP_aCC >= ((major)*10000 + (minor)*100))