From: Kalle Sommer Nielsen Date: Thu, 4 Jan 2018 07:16:20 +0000 (+0100) Subject: Fix macro for Windows X-Git-Tag: php-7.3.0alpha1~699 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34fb94b9f3632c53bbc94ee906b396fee2b05bba;p=php Fix macro for Windows --- diff --git a/ext/opcache/ZendAccelerator.h b/ext/opcache/ZendAccelerator.h index f1d82e3c04..692d9e024a 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")))