summaryrefslogtreecommitdiff
path: root/ext/ereg/regex
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2008-07-21 16:22:29 +0000
committerJani Taskinen <jani@php.net>2008-07-21 16:22:29 +0000
commit2e4519b19ce111e47df053e71a1166a589dfc6e6 (patch)
treee2e96ea50bc1557d8bf337547c3ce79b8ba7b8c1 /ext/ereg/regex
parentc2eb3ea15844e58cade26152b2b634a6c1bd4acd (diff)
downloadphp-git-2e4519b19ce111e47df053e71a1166a589dfc6e6.tar.gz
- Visibility (bug #45564)
Diffstat (limited to 'ext/ereg/regex')
-rw-r--r--ext/ereg/regex/regex.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/ereg/regex/regex.h b/ext/ereg/regex/regex.h
index b39c5e178c..56c63148d7 100644
--- a/ext/ereg/regex/regex.h
+++ b/ext/ereg/regex/regex.h
@@ -10,6 +10,8 @@ extern "C" {
/* === regex2.h === */
#ifdef WIN32
#define API_EXPORT(type) __declspec(dllexport) type __stdcall
+#elif defined(__GNUC__) && __GNUC__ >= 4
+#define API_EXPORT(type) __attribute__ ((visibility("default"))) type
#else
#define API_EXPORT(type) type
#endif