com php-src: fix two clang errors on Windows: Zend/zend_porta bility.h
| From: | Anatol Belski | Date: | Sun, 19 Jul 2015 18:06:31 +0000 |
| Subject: | com php-src: fix two clang errors on Windows: Zend/zend_porta bility.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88041@lists.php.net to get a copy of this message | ||
Commit: 3de0ae5477825445f35b448c2e6245b9196dd528
Author: Anatol Belski <ab@php.net> Sun, 19 Jul 2015 20:06:31 +0200
Parents: 61ebc6c6154e9d3386312aa71b27136fe3719345
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3de0ae5477825445f35b448c2e6245b9196dd528
Log:
fix two clang errors on Windows
Changed paths:
M Zend/zend_portability.h
Diff:
diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h
index 42a70b9..2464f48 100644
--- a/Zend/zend_portability.h
+++ b/Zend/zend_portability.h
@@ -93,7 +93,7 @@
# define __has_builtin(x) 0
#endif
-#if defined(ZEND_WIN32)
+#if defined(ZEND_WIN32) && !defined(__clang__)
# define ZEND_ASSUME(c) __assume(c)
#elif ((defined(__GNUC__) && ZEND_GCC_VERSION >= 4005) ||
__has_builtin(__builtin_unreachable)) && PHP_HAVE_BUILTIN_EXPECT
# define ZEND_ASSUME(c) do { \
@@ -225,7 +225,7 @@ char *alloca();
# define ZEND_FASTCALL __attribute__((fastcall))
#elif defined(_MSC_VER) && defined(_M_IX86) && _MSC_VER == 1700
# define ZEND_FASTCALL __fastcall
-#elif defined(_MSC_VER) && _MSC_VER >= 1800
+#elif defined(_MSC_VER) && _MSC_VER >= 1800 && !defined(__clang__)
# define ZEND_FASTCALL __vectorcall
#else
# define ZEND_FASTCALL