projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- update
[m6w6/ext-http]
/
php_http_std_defs.h
diff --git
a/php_http_std_defs.h
b/php_http_std_defs.h
index c9369b5b380fa36a1d1b7c995be9d9a2a03bd38f..186a8b0834098d4f3f5f750f202fe4a3efc707a2 100644
(file)
--- a/
php_http_std_defs.h
+++ b/
php_http_std_defs.h
@@
-18,8
+18,14
@@
#ifndef PHP_HTTP_STD_DEFS_H
#define PHP_HTTP_STD_DEFS_H
#ifndef PHP_HTTP_STD_DEFS_H
#define PHP_HTTP_STD_DEFS_H
-#ifdef PHP_WIN32
-# define PHP_HTTP_API __declspec(dllexport)
+#if defined(PHP_WIN32)
+# if defined(HTTP_EXPORTS)
+# define PHP_HTTP_API __declspec(dllexport)
+# elif defined(COMPILE_DL_HTTP)
+# define PHP_HTTP_API __declspec(dllimport)
+# else
+# define PHP_HTTP_API
+# endif
#else
# define PHP_HTTP_API
#endif
#else
# define PHP_HTTP_API
#endif