nlopess Wed Dec 10 10:16:22 2008 UTC Modified files: /php-src/ext/pcre upgrade-pcre.php /php-src/ext/pcre/pcrelib config.h Log: MFB: export pcre API when using gcc 4 http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/upgrade-pcre.php?r1=1.3&r2=1.4&diff_format=u Index: php-src/ext/pcre/upgrade-pcre.php diff -u php-src/ext/pcre/upgrade-pcre.php:1.3 php-src/ext/pcre/upgrade-pcre.php:1.4 --- php-src/ext/pcre/upgrade-pcre.php:1.3 Mon Jan 14 09:40:53 2008 +++ php-src/ext/pcre/upgrade-pcre.php Wed Dec 10 10:16:20 2008 @@ -106,6 +106,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 + '; http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/config.h?r1=1.8&r2=1.9&diff_format=u Index: php-src/ext/pcre/pcrelib/config.h diff -u php-src/ext/pcre/pcrelib/config.h:1.8 php-src/ext/pcre/pcrelib/config.h:1.9 --- php-src/ext/pcre/pcrelib/config.h:1.8 Sun Sep 14 14:37:10 2008 +++ php-src/ext/pcre/pcrelib/config.h Wed Dec 10 10:16:20 2008 @@ -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. */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php