From 5d46db2bdadf26743751cd473a047bf9e22b7641 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 4 Jan 2016 19:18:19 +0100 Subject: [PATCH] Changed: Define CLANG_VERSION is using clang compiler --- code/nel/include/nel/misc/types_nl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/nel/include/nel/misc/types_nl.h b/code/nel/include/nel/misc/types_nl.h index 32b6a85d0..64d82d5bf 100644 --- a/code/nel/include/nel/misc/types_nl.h +++ b/code/nel/include/nel/misc/types_nl.h @@ -191,6 +191,10 @@ # define NL_ISO_STDTR1_HEADER(header)
# define NL_ISO_STDTR1_NAMESPACE std # endif +# endif + // clang define GCC version for compatibility +# ifdef __clang__ +# define CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__) # endif #endif