From a90450bc099218c49c122744bbd52f21a0d7bb7c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 10 Mar 2017 21:33:54 +0100 Subject: [PATCH] Compiler.h: add macro CLANG_VERSION --- src/Compiler.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Compiler.h b/src/Compiler.h index 43bc9a8..a3a4811 100644 --- a/src/Compiler.h +++ b/src/Compiler.h @@ -32,6 +32,12 @@ # define GCC_VERSION 0 #endif +#ifdef __clang__ +# define CLANG_VERSION GCC_MAKE_VERSION(__clang_major__, __clang_minor__, __clang_patchlevel__) +#else +# define CLANG_VERSION 0 +#endif + #if GCC_CHECK_VERSION(4,0) /* GCC 4.x */ -- 2.30.2