diff options
author | Rob Richards <rrichards@php.net> | 2008-12-27 12:22:38 +0000 |
---|---|---|
committer | Rob Richards <rrichards@php.net> | 2008-12-27 12:22:38 +0000 |
commit | b3f4191d354bd2736785c09775a12e8e74fe11b5 (patch) | |
tree | ce7ea76ac3f9006c9560ad50133af0dcfaf45b6b /ext/simplexml/php_simplexml.h | |
parent | 8fc5e994787b9d125cf389c5d1ac2093acbea653 (diff) | |
download | php-git-b3f4191d354bd2736785c09775a12e8e74fe11b5.tar.gz |
MFH: proper exports/imports for win32
Diffstat (limited to 'ext/simplexml/php_simplexml.h')
-rw-r--r-- | ext/simplexml/php_simplexml.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/simplexml/php_simplexml.h b/ext/simplexml/php_simplexml.h index e8e8083215..0454eaed59 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(); |