summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 85c7f15)
raw | patch | inline | side by side (parent: 85c7f15)
author | Max Kellermann <max.kellermann@gmail.com> | |
Fri, 10 Mar 2017 20:33:54 +0000 (21:33 +0100) | ||
committer | Max Kellermann <max.kellermann@gmail.com> | |
Fri, 10 Mar 2017 20:34:08 +0000 (21:34 +0100) |
src/Compiler.h | patch | blob | history |
diff --git a/src/Compiler.h b/src/Compiler.h
index 43bc9a85521bb5ad01e592fd3c16c5d4230bb7af..a3a48118aae3d8b4578085f104c962ce8df2babd 100644 (file)
--- a/src/Compiler.h
+++ b/src/Compiler.h
# 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 */