com php-src: Fix macro for Windows: ext/opcache/ZendAccelerator.h
| From: | Kalle Sommer Nielsen | Date: | Thu, 04 Jan 2018 07:16:20 +0000 |
| Subject: | com php-src: Fix macro for Windows: ext/opcache/ZendAccelerator.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100793@lists.php.net to get a copy of this message | ||
Commit: 34fb94b9f3632c53bbc94ee906b396fee2b05bba
Author: Kalle Sommer Nielsen <kalle@php.net> Thu, 4 Jan 2018 08:16:20 +0100
Parents: 1d0ac9819a32152e1bf547032ca50e4053e5a227
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=34fb94b9f3632c53bbc94ee906b396fee2b05bba
Log:
Fix macro for Windows
Changed paths:
M ext/opcache/ZendAccelerator.h
Diff:
diff --git a/ext/opcache/ZendAccelerator.h b/ext/opcache/ZendAccelerator.h
index f1d82e3...692d9e0 100644
--- a/ext/opcache/ZendAccelerator.h
+++ b/ext/opcache/ZendAccelerator.h
@@ -1,4 +1,4 @@
-/*
+/*
+----------------------------------------------------------------------+
| Zend OPcache |
+----------------------------------------------------------------------+
@@ -64,7 +64,7 @@
#endif
#ifndef ZEND_EXT_API
-# if WIN32|WINNT
+# ifdef ZEND_WIN32
# define ZEND_EXT_API __declspec(dllexport)
# elif defined(__GNUC__) && __GNUC__ >= 4
# define ZEND_EXT_API __attribute__ ((visibility("default")))