summaryrefslogtreecommitdiff
path: root/ext/simplexml/php_simplexml.h
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2008-12-26 20:28:43 +0000
committerRob Richards <rrichards@php.net>2008-12-26 20:28:43 +0000
commit5690e188da82a7332247f4c97fe56f4e187a7d00 (patch)
tree2f0e77a12ac23af3d21cd0f0dee57b162c00710b /ext/simplexml/php_simplexml.h
parent50d26a85a6d27602f15f3aacd5e9e964b9034cb9 (diff)
downloadphp-git-5690e188da82a7332247f4c97fe56f4e187a7d00.tar.gz
MFH: properly export functions
Diffstat (limited to 'ext/simplexml/php_simplexml.h')
-rw-r--r--ext/simplexml/php_simplexml.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/ext/simplexml/php_simplexml.h b/ext/simplexml/php_simplexml.h
index 309f0186c5..531786967f 100644
--- a/ext/simplexml/php_simplexml.h
+++ b/ext/simplexml/php_simplexml.h
@@ -77,7 +77,19 @@ typedef struct {
#define SIMPLEXML_G(v) (simplexml_globals.v)
#endif
-ZEND_API zend_class_entry *sxe_get_element_class_entry();
+#ifdef PHP_WIN32
+#ifdef SIMPLEXML_EXPORTS
+#define PHP_SXE_API __declspec(dllexport)
+#else
+#define PHP_SXE_API __declspec(dllimport)
+#endif /* SIMPLEXML_EXPORTS */
+#elif defined(__GNUC__) && __GNUC__ >= 4
+#define PHP_SXE_API __attribute__ ((visibility("default")))
+#else
+#define PHP_SXE_API
+#endif /* PHP_WIN32 */
+
+PHP_SXE_API zend_class_entry *sxe_get_element_class_entry();
#endif