summaryrefslogtreecommitdiff
path: root/ext/spl/php_spl.h
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-12-23 01:57:26 +0000
committerWez Furlong <wez@php.net>2003-12-23 01:57:26 +0000
commit8d011cba6d409255e84aac74996590be8b4e1a73 (patch)
tree4d04bffefc5560ae490a529fbd9824402f03b613 /ext/spl/php_spl.h
parent475821225db9b8e80249fd2c70f205b95f7ac437 (diff)
downloadphp-git-8d011cba6d409255e84aac74996590be8b4e1a73.tar.gz
fix API exports
Diffstat (limited to 'ext/spl/php_spl.h')
-rwxr-xr-xext/spl/php_spl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/spl/php_spl.h b/ext/spl/php_spl.h
index 8290654251..e81a6963da 100755
--- a/ext/spl/php_spl.h
+++ b/ext/spl/php_spl.h
@@ -31,6 +31,18 @@
extern zend_module_entry spl_module_entry;
#define phpext_spl_ptr &spl_module_entry
+#ifdef PHP_WIN32
+# ifdef SPL_EXPORTS
+# define SPL_API __declspec(dllexport)
+# elif defined(COMPILE_DL_SPL)
+# define SPL_API __declspec(dllimport)
+# else
+# define SPL_API /* nothing */
+# endif
+#else
+# define SPL_API
+#endif
+
#if defined(PHP_WIN32) && !defined(COMPILE_DL_SPL)
#undef phpext_spl
#define phpext_spl NULL