From: Max Kellermann Date: Fri, 10 Mar 2017 20:33:54 +0000 (+0100) Subject: Compiler.h: add macro CLANG_VERSION X-Git-Tag: v0.26~79 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a90450bc099218c49c122744bbd52f21a0d7bb7c;p=ncmpc.git Compiler.h: add macro CLANG_VERSION --- 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 */