From b7d86e4b6b4a3df4666c52082d06a861e429165a Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 6 Apr 2009 20:26:37 +0000 Subject: [PATCH] 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 --- src/mod/endpoints/mod_opal/mod_opal.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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