diff options
-rw-r--r-- | ext/ereg/regex/regex.h | 2 |
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 |