Compiler.h: add macro CLANG_CHECK_VERSION()
This commit is contained in:
parent
0964b06240
commit
6b4ac66962
@ -52,6 +52,13 @@
|
|||||||
# warning Untested compiler. Use at your own risk!
|
# warning Untested compiler. Use at your own risk!
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Are we building with the specified version of clang or newer?
|
||||||
|
*/
|
||||||
|
#define CLANG_CHECK_VERSION(major, minor) \
|
||||||
|
(defined(__clang__) && \
|
||||||
|
CLANG_VERSION >= GCC_MAKE_VERSION(major, minor, 0))
|
||||||
|
|
||||||
#if GCC_CHECK_VERSION(4,0)
|
#if GCC_CHECK_VERSION(4,0)
|
||||||
|
|
||||||
/* GCC 4.x */
|
/* GCC 4.x */
|
||||||
|
Loading…
Reference in New Issue
Block a user