diff options
author | Rob Richards <rrichards@php.net> | 2008-12-27 12:21:36 +0000 |
---|---|---|
committer | Rob Richards <rrichards@php.net> | 2008-12-27 12:21:36 +0000 |
commit | 4defef2736462a0761ea1a5329d6aa0535164a8d (patch) | |
tree | 14603f4b499d4bbe5ac0a6bf66b61f279f2c5168 /ext/simplexml | |
parent | 0c1e5d044cd4c41ac89387a611a89a44b8dfc11e (diff) | |
download | php-git-4defef2736462a0761ea1a5329d6aa0535164a8d.tar.gz |
proper exports/imports for win32
Diffstat (limited to 'ext/simplexml')
-rw-r--r-- | ext/simplexml/config.w32 | 1 | ||||
-rw-r--r-- | ext/simplexml/php_simplexml.h | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/ext/simplexml/config.w32 b/ext/simplexml/config.w32 index 1166052b7a..979f52281a 100644 --- a/ext/simplexml/config.w32 +++ b/ext/simplexml/config.w32 @@ -13,6 +13,7 @@ if (PHP_SIMPLEXML == "yes") { if (!ADD_EXTENSION_DEP('simplexml', 'spl', true)) { MESSAGE("\tSPL support in simplexml disabled"); } + ADD_FLAG("CFLAGS_SIMPLEXML", "/D PHP_SIMPLEXML_EXPORTS "); } else { PHP_SIMPLEXML == "no"; WARNING("simplexml not enabled; libraries and headers not found"); diff --git a/ext/simplexml/php_simplexml.h b/ext/simplexml/php_simplexml.h index 13ec6e62d6..f4dffdea2c 100644 --- a/ext/simplexml/php_simplexml.h +++ b/ext/simplexml/php_simplexml.h @@ -77,7 +77,15 @@ typedef struct { #define SIMPLEXML_G(v) (simplexml_globals.v) #endif -#define PHP_SXE_API ZEND_DLEXPORT +#ifdef PHP_WIN32 +# ifdef PHP_SIMPLEXML_EXPORTS +# define PHP_SXE_API __declspec(dllexport) +# else +# define PHP_SXE_API __declspec(dllimport) +# endif +#else +# define PHP_SXE_API ZEND_API +#endif PHP_SXE_API zend_class_entry *sxe_get_element_class_entry(TSRMLS_D); |