summaryrefslogtreecommitdiff
path: root/Zend/acconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/acconfig.h')
-rw-r--r--Zend/acconfig.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/Zend/acconfig.h b/Zend/acconfig.h
index 7fd5a07661..8e3176c0f1 100644
--- a/Zend/acconfig.h
+++ b/Zend/acconfig.h
@@ -19,8 +19,14 @@
/* $Id$ */
-#define ZEND_API
-#define ZEND_DLEXPORT
+#if defined(__GNUC__) && __GNUC__ >= 4
+# define ZEND_API __attribute__ ((visibility("default")))
+# define ZEND_DLEXPORT __attribute__ ((visibility("default")))
+#else
+# define ZEND_API
+# define ZEND_DLEXPORT
+#endif
+
#define ZEND_DLIMPORT
@TOP@