summaryrefslogtreecommitdiff
path: root/ext/pcre/pcrelib/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pcre/pcrelib/config.h')
-rw-r--r--ext/pcre/pcrelib/config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/pcre/pcrelib/config.h b/ext/pcre/pcrelib/config.h
index dc6f26753b..98e827f1ca 100644
--- a/ext/pcre/pcrelib/config.h
+++ b/ext/pcre/pcrelib/config.h
@@ -8,6 +8,16 @@
#define SUPPORT_UCP
#define SUPPORT_UTF8
+#if defined(__GNUC__) && __GNUC__ >= 4
+# ifdef __cplusplus
+# define PCRE_EXP_DECL extern "C" __attribute__ ((visibility("default")))
+# else
+# define PCRE_EXP_DECL extern __attribute__ ((visibility("default")))
+# endif
+# define PCRE_EXP_DEFN __attribute__ ((visibility("default")))
+# define PCRE_EXP_DATA_DEFN __attribute__ ((visibility("default")))
+#endif
+
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */