chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
@@@ remote works?
[mLib]
/
utils
/
compiler.h
diff --git
a/utils/compiler.h
b/utils/compiler.h
index edc6e4d0199af8f96ba805433f40fd98c2cdf035..ded6c80d817783ff664f95b30a9c38e51ff54ef2 100644
(file)
--- a/
utils/compiler.h
+++ b/
utils/compiler.h
@@
-34,7
+34,7
@@
/*----- Macros ------------------------------------------------------------*/
/*----- Macros ------------------------------------------------------------*/
-#if
def __GNUC__
+#if
defined(__GNUC__) && !defined(__clang__)
# define GCC_VERSION_P(maj, min) \
(__GNUC__ > (maj) || (__GNUC__ == (maj) && __GNUC_MINOR__ >= (min)))
#else
# define GCC_VERSION_P(maj, min) \
(__GNUC__ > (maj) || (__GNUC__ == (maj) && __GNUC_MINOR__ >= (min)))
#else