diff options
Diffstat (limited to 'src/Compiler.h')
-rw-r--r-- | src/Compiler.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Compiler.h b/src/Compiler.h index 3b4e9c8dc..dc3de5af9 100644 --- a/src/Compiler.h +++ b/src/Compiler.h @@ -64,6 +64,13 @@ # warning Untested compiler. Use at your own risk! #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 CLANG_OR_GCC_VERSION(4,0) /* GCC 4.x */ |