summaryrefslogtreecommitdiff
path: root/sapi/embed/php_embed.h
diff options
context:
space:
mode:
authorGarrett Serack <garretts@php.net>2009-07-30 20:20:56 +0000
committerGarrett Serack <garretts@php.net>2009-07-30 20:20:56 +0000
commitbdcc7e14603bd42151729a0f5fbfa10f4e49c446 (patch)
tree9bb8283d197dcdcf1d162a33f4800a21fb0317cd /sapi/embed/php_embed.h
parent24e68ba62c5523a9bc3c08dff0418abd6880b924 (diff)
downloadphp-git-bdcc7e14603bd42151729a0f5fbfa10f4e49c446.tar.gz
- Updated fix for bug #48911 (embed sapi misses SAPI_API)
#- Windows didn't need SAPI_API
Diffstat (limited to 'sapi/embed/php_embed.h')
-rw-r--r--sapi/embed/php_embed.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/sapi/embed/php_embed.h b/sapi/embed/php_embed.h
index 7abf1c2029..9c5bdd0851 100644
--- a/sapi/embed/php_embed.h
+++ b/sapi/embed/php_embed.h
@@ -57,10 +57,16 @@
php_embed_shutdown(TSRMLS_C); \
}
+#ifndef PHP_WIN32
+ #define EMBED_SAPI_API SAPI_API
+#else
+ #define EMBED_SAPI_API
+#endif
+
BEGIN_EXTERN_C()
-SAPI_API int php_embed_init(int argc, char **argv PTSRMLS_DC);
-SAPI_API void php_embed_shutdown(TSRMLS_D);
-extern SAPI_API sapi_module_struct php_embed_module;
+EMBED_SAPI_API int php_embed_init(int argc, char **argv PTSRMLS_DC);
+EMBED_SAPI_API void php_embed_shutdown(TSRMLS_D);
+extern EMBED_SAPI_API sapi_module_struct php_embed_module;
END_EXTERN_C()