mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
MFB: export pcre API when using gcc 4
This commit is contained in:
parent
5d75d3545d
commit
d3ec4e3630
2 changed files with 20 additions and 0 deletions
|
@ -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. */
|
||||
|
|
|
@ -106,6 +106,16 @@ $prepend_config_h = '
|
|||
#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
|
||||
|
||||
|
||||
';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue