X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=phpstr%2Fphpstr.h;h=40c59ed2c00325f68757c3a4fb4d5eec6037f347;hp=9ef71efbe5d3bc33a9a3802b20529f5ffe0e4e6e;hb=020d5b055921392c0dfb25043962a40867d8b033;hpb=5178ff512e676873a875cff22f65468d2d325fde diff --git a/phpstr/phpstr.h b/phpstr/phpstr.h index 9ef71ef..40c59ed 100644 --- a/phpstr/phpstr.h +++ b/phpstr/phpstr.h @@ -6,8 +6,14 @@ #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 @@ -143,4 +149,3 @@ PHPSTR_API void phpstr_free(phpstr *buf); * vim600: sw=4 ts=4 fdm=marker * vim<600: sw=4 ts=4 */ -