com php-src: fix build with clang on Winodws: Zend/zend_alloc .c
| From: | Anatol Belski | Date: | Thu, 10 Mar 2016 14:30:20 +0000 |
| Subject: | com php-src: fix build with clang on Winodws: Zend/zend_alloc .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91322@lists.php.net to get a copy of this message | ||
Commit: 741bfe3932de28c20f401cc7e0447fffb2bea7d6
Author: Anatol Belski <ab@php.net> Thu, 10 Mar 2016 15:30:20 +0100
Parents: 8b5d09a195f4d254d257d56fe7d10073fdf0cb23
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=741bfe3932de28c20f401cc7e0447fffb2bea7d6
Log:
fix build with clang on Winodws
Changed paths:
M Zend/zend_alloc.c
Diff:
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c
index 2e0de26..6f0542e 100644
--- a/Zend/zend_alloc.c
+++ b/Zend/zend_alloc.c
@@ -2328,7 +2328,7 @@ ZEND_API int is_zend_mm(void)
#endif
}
-#if !ZEND_DEBUG && !defined(_WIN32)
+#if !ZEND_DEBUG && (!defined(_WIN32) || defined(__clang__))
#undef _emalloc
#if ZEND_MM_CUSTOM