projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- flush
[m6w6/ext-http]
/
phpstr
/
phpstr.h
diff --git
a/phpstr/phpstr.h
b/phpstr/phpstr.h
index 9ef71efbe5d3bc33a9a3802b20529f5ffe0e4e6e..40c59ed2c00325f68757c3a4fb4d5eec6037f347 100644
(file)
--- a/
phpstr/phpstr.h
+++ b/
phpstr/phpstr.h
@@
-6,8
+6,14
@@
#include "php.h"
#include "php.h"
-#ifdef PHP_WIN32
-# define PHPSTR_API __declspec(dllexport)
+#if defined(PHP_WIN32)
+# if defined(PHPSTR_EXPORTS)
+# define PHPSTR_API __declspec(dllexport)
+# elif defined(COMPILE_DL_PHPSTR)
+# define PHPSTR_API __declspec(dllimport)
+# else
+# define PHPSTR_API
+# endif
#else
# define PHPSTR_API
#endif
#else
# define PHPSTR_API
#endif
@@
-143,4
+149,3
@@
PHPSTR_API void phpstr_free(phpstr *buf);
* vim600: sw=4 ts=4 fdm=marker
* vim<600: sw=4 ts=4
*/
* vim600: sw=4 ts=4 fdm=marker
* vim<600: sw=4 ts=4
*/
-