Lines Matching +full:version +full:- +full:major
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 PCAP_IS_AT_LEAST_GNUC_VERSION(major, minor) 0 argument
87 #define PCAP_IS_AT_LEAST_GNUC_VERSION(major, minor) \ argument
88 (__GNUC__ > (major) || \
89 (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor)))
93 * Check whether this is Clang major.minor or a later release.
98 #define PCAP_IS_AT_LEAST_CLANG_VERSION(major, minor) 0 argument
101 #define PCAP_IS_AT_LEAST_CLANG_VERSION(major, minor) \ argument
102 (__clang_major__ > (major) || \
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 PCAP_IS_AT_LEAST_SUNC_VERSION(major,minor) 0 argument
129 #define PCAP_SUNPRO_VERSION_TO_BCD(major, minor) \ argument
131 (((major) << 12) | (((minor)/10) << 8) | (((minor)%10) << 4)) : \
132 (((major) << 8) | ((minor) << 4)))
133 #define PCAP_IS_AT_LEAST_SUNC_VERSION(major,minor) \ argument
134 (__SUNPRO_C >= PCAP_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 PCAP_IS_AT_LEAST_XL_C_VERSION(major,minor) 0 argument
154 * Later Linux version of XL C; use __ibmxl_version__ to test
155 * the version.
157 #define PCAP_IS_AT_LEAST_XL_C_VERSION(major, minor) \ argument
158 (__ibmxl_version__ > (major) || \
159 (__ibmxl_version__ == (major) && __ibmxl_release__ >= (minor)))
162 * __ibmxl__ not defined; use __xlC__ to test the version.
164 #define PCAP_IS_AT_LEAST_XL_C_VERSION(major, minor) \ argument
165 (__xlC__ >= (((major) << 8) | (minor)))
170 * Check whether this is HP aC++/HP C major.minor or a later release.
172 * The version number in __HP_aCC is encoded in zero-padded decimal BCD,
174 * the major version number, the next two decimal digits being the minor
175 * version number, and the last two decimal digits being the patch version.
176 * (Strip off the A., remove the . between the major and minor version
182 #define PCAP_IS_AT_LEAST_HP_C_VERSION(major,minor) 0 argument
185 #define PCAP_IS_AT_LEAST_HP_C_VERSION(major,minor) \ argument
186 (__HP_aCC >= ((major)*10000 + (minor)*100))