API visibility support (GCC/SUNCC) (FSCORE-264)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12061 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2009-02-16 18:17:01 +00:00
parent 104c99ea85
commit ffe2ad4bbd
6 changed files with 175 additions and 15 deletions

View File

@@ -110,6 +110,12 @@ typedef __int16 int16_t;
#define teletone_assert(expr) assert(expr)
#endif
#if (defined(__GNUC__) || defined(__SUNCC__)) && defined(HAVE_VISIBILITY)
#define TELETONE_API __attribute__((visibility("default")))
#else
#define TELETONE_API
#endif
#include <libteletone_generate.h>
#include <libteletone_detect.h>