summaryrefslogtreecommitdiff
path: root/ext/zend_test/php_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zend_test/php_test.h')
-rw-r--r--ext/zend_test/php_test.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/ext/zend_test/php_test.h b/ext/zend_test/php_test.h
index 834c380362..5d9e31cc83 100644
--- a/ext/zend_test/php_test.h
+++ b/ext/zend_test/php_test.h
@@ -35,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