summaryrefslogtreecommitdiff
path: root/Zend/zend_portability.h
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-08-01 16:19:54 +0200
committerAnatol Belski <ab@php.net>2018-08-01 16:19:54 +0200
commit36857ab52b8cafc91650ccc55053abe6b517f092 (patch)
treef898c008ab65b10bab0e08f9b9967e3d0263af02 /Zend/zend_portability.h
parentb1d2a89ac1a2880bfe6125738bad061317d63b7b (diff)
downloadphp-git-36857ab52b8cafc91650ccc55053abe6b517f092.tar.gz
Fix clang compilation
By usage of -fmodules, all the intrinsic items are loaded automatically. The headers included come however from Visual Studio, thus bringing some conflicting declarations. On the other hand, -fmodules is needed to mitigate linking issues with clang in VS compatibility mode.
Diffstat (limited to 'Zend/zend_portability.h')
-rw-r--r--Zend/zend_portability.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h
index 34d5a3d9b3..296ffe7436 100644
--- a/Zend/zend_portability.h
+++ b/Zend/zend_portability.h
@@ -70,7 +70,7 @@
# include <alloca.h>
#endif
-#if defined(ZEND_WIN32)
+#if defined(ZEND_WIN32) && !defined(__clang__)
#include <intrin.h>
#endif