File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ if (PHP_CURL != "no") {
28
28
) {
29
29
EXTENSION ( "curl" , "interface.c multi.c share.c curl_file.c" ) ;
30
30
AC_DEFINE ( 'HAVE_CURL' , 1 , 'Have cURL library' ) ;
31
- ADD_FLAG ( "CFLAGS_CURL" , "/D CURL_STATICLIB" ) ;
31
+ ADD_FLAG ( "CFLAGS_CURL" , "/D CURL_STATICLIB /D PHP_CURL_EXPORTS=1 " ) ;
32
32
PHP_INSTALL_HEADERS ( "ext/curl" , "php_curl.h" ) ;
33
33
// TODO: check for curl_version_info
34
34
} else {
Original file line number Diff line number Diff line change 21
21
#include "php.h"
22
22
23
23
#ifdef PHP_WIN32
24
- # define PHP_CURL_API __declspec(dllexport)
24
+ # ifdef PHP_CURL_EXPORTS
25
+ # define PHP_CURL_API __declspec(dllexport)
26
+ # else
27
+ # define PHP_CURL_API __declspec(dllimport)
28
+ # endif
25
29
#elif defined(__GNUC__ ) && __GNUC__ >= 4
26
30
# define PHP_CURL_API __attribute__ ((visibility("default")))
27
31
#else
You can’t perform that action at this time.
0 commit comments