File tree 2 files changed +12
-6
lines changed
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ static int php_embed_startup(sapi_module_struct *sapi_module)
108
108
return SUCCESS ;
109
109
}
110
110
111
- extern SAPI_API sapi_module_struct php_embed_module = {
111
+ extern EMBED_SAPI_API sapi_module_struct php_embed_module = {
112
112
"embed" , /* name */
113
113
"PHP Embedded Library" , /* pretty name */
114
114
@@ -152,7 +152,7 @@ static const zend_function_entry additional_functions[] = {
152
152
{NULL , NULL , NULL }
153
153
};
154
154
155
- SAPI_API int php_embed_init (int argc , char * * argv PTSRMLS_DC )
155
+ EMBED_SAPI_API int php_embed_init (int argc , char * * argv PTSRMLS_DC )
156
156
{
157
157
zend_llist global_vars ;
158
158
#ifdef ZTS
@@ -217,7 +217,7 @@ SAPI_API int php_embed_init(int argc, char **argv PTSRMLS_DC)
217
217
return SUCCESS ;
218
218
}
219
219
220
- SAPI_API void php_embed_shutdown (TSRMLS_D )
220
+ EMBED_SAPI_API void php_embed_shutdown (TSRMLS_D )
221
221
{
222
222
php_request_shutdown ((void * ) 0 );
223
223
php_module_shutdown (TSRMLS_C );
Original file line number Diff line number Diff line change 57
57
php_embed_shutdown(TSRMLS_C); \
58
58
}
59
59
60
+ #ifndef PHP_WIN32
61
+ #define EMBED_SAPI_API SAPI_API
62
+ #else
63
+ #define EMBED_SAPI_API
64
+ #endif
65
+
60
66
BEGIN_EXTERN_C ()
61
- SAPI_API int php_embed_init (int argc , char * * argv PTSRMLS_DC );
62
- SAPI_API void php_embed_shutdown (TSRMLS_D );
63
- extern SAPI_API sapi_module_struct php_embed_module ;
67
+ EMBED_SAPI_API int php_embed_init (int argc , char * * argv PTSRMLS_DC );
68
+ EMBED_SAPI_API void php_embed_shutdown (TSRMLS_D );
69
+ extern EMBED_SAPI_API sapi_module_struct php_embed_module ;
64
70
END_EXTERN_C ()
65
71
66
72
You can’t perform that action at this time.
0 commit comments