]> granicus.if.org Git - php/commitdiff
MFH:- Visibility (bug #45564)
authorJani Taskinen <jani@php.net>
Mon, 21 Jul 2008 16:23:00 +0000 (16:23 +0000)
committerJani Taskinen <jani@php.net>
Mon, 21 Jul 2008 16:23:00 +0000 (16:23 +0000)
ext/ereg/regex/regex.h

index b39c5e178c6b7a2090b2cb69318db876b393d4a3..56c63148d789ece27d3a0277ffe20ee5c3903ef7 100644 (file)
@@ -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