diff options
Diffstat (limited to 'ext/zend_test/php_test.h')
-rw-r--r-- | ext/zend_test/php_test.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/ext/zend_test/php_test.h b/ext/zend_test/php_test.h index da57f7efc9..5d9e31cc83 100644 --- a/ext/zend_test/php_test.h +++ b/ext/zend_test/php_test.h @@ -1,7 +1,5 @@ /* +----------------------------------------------------------------------+ - | PHP Version 7 | - +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | @@ -37,7 +35,17 @@ struct bug79096 { uint64_t b; }; -ZEND_API struct bug79096 bug79096(void); -ZEND_API void bug79532(off_t *array, size_t elems); +#ifdef PHP_WIN32 +# ifdef PHP_ZEND_TEST_EXPORTS +# define PHP_ZEND_TEST_API __declspec(dllexport) +# else +# define PHP_ZEND_TEST_API __declspec(dllimport) +# endif +#else +# define PHP_ZEND_TEST_API ZEND_API +#endif + +PHP_ZEND_TEST_API struct bug79096 bug79096(void); +PHP_ZEND_TEST_API void bug79532(off_t *array, size_t elems); #endif |