From: Michael Jerris Date: Mon, 6 Apr 2009 20:26:37 +0000 (+0000) Subject: mod_opal: disable visibility support broken in newer gcc (MODENDP-190) X-Git-Tag: v1.0.4~1263 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7d86e4b6b4a3df4666c52082d06a861e429165a;p=thirdparty%2Ffreeswitch.git mod_opal: disable visibility support broken in newer gcc (MODENDP-190) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12923 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_opal/mod_opal.h b/src/mod/endpoints/mod_opal/mod_opal.h index 4e576a67ef..c2cf2c630c 100644 --- a/src/mod/endpoints/mod_opal/mod_opal.h +++ b/src/mod/endpoints/mod_opal/mod_opal.h @@ -26,12 +26,20 @@ #ifndef __FREESWITCH_MOD_OPAL__ #define __FREESWITCH_MOD_OPAL__ +#if defined(__GNUC__) && defined(HAVE_VISIBILITY) +#pragma GCC visibility push(default) +#endif + #include #include #include #include #include +#if defined(__GNUC__) && defined(HAVE_VISIBILITY) +#pragma GCC visibility pop +#endif + #undef strcasecmp #undef strncasecmp