diff options
Diffstat (limited to 'ext/zend_test/php_test.h')
-rw-r--r-- | ext/zend_test/php_test.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/ext/zend_test/php_test.h b/ext/zend_test/php_test.h index da57f7efc9..03e6d836e2 100644 --- a/ext/zend_test/php_test.h +++ b/ext/zend_test/php_test.h @@ -37,7 +37,18 @@ struct bug79096 { uint64_t b; }; -ZEND_API struct bug79096 bug79096(void); -ZEND_API void bug79532(off_t *array, size_t elems); +#ifdef PHP_WIN32 +# define PHP_ZEND_TEST_API __declspec(dllexport) +#elif defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_ZEND_TEST_API __attribute__ ((visibility("default"))) +#else +# define PHP_ZEND_TEST_API +#endif + +PHP_ZEND_TEST_API struct bug79096 bug79096(void); +PHP_ZEND_TEST_API void bug79532(off_t *array, size_t elems); + +extern PHP_ZEND_TEST_API int *(*bug79177_cb)(void); +PHP_ZEND_TEST_API void bug79177(void); #endif |