mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
update api visibility macros for windows
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12547 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -110,10 +110,30 @@ typedef __int16 int16_t;
|
||||
#define teletone_assert(expr) assert(expr)
|
||||
#endif
|
||||
|
||||
#if (defined(__GNUC__) || defined(__SUNPRO_CC) || defined (__SUNPRO_C)) && defined(HAVE_VISIBILITY)
|
||||
#define TELETONE_API __attribute__((visibility("default")))
|
||||
#ifdef _MSC_VER
|
||||
#if defined(TT_DECLARE_STATIC)
|
||||
#define TELETONE_API(type) type __stdcall
|
||||
#define TELETONE_API_NONSTD(type) type __cdecl
|
||||
#define TELETONE_API_DATA
|
||||
#elif defined(TELETONE_EXPORTS)
|
||||
#define TELETONE_API(type) __declspec(dllexport) type __stdcall
|
||||
#define TELETONE_API_NONSTD(type) __declspec(dllexport) type __cdecl
|
||||
#define TELETONE_API_DATA __declspec(dllexport)
|
||||
#else
|
||||
#define TELETONE_API
|
||||
#define TELETONE_API(type) __declspec(dllimport) type __stdcall
|
||||
#define TELETONE_API_NONSTD(type) __declspec(dllimport) type __cdecl
|
||||
#define TELETONE_API_DATA __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
#if (defined(__GNUC__) || defined(__SUNPRO_CC) || defined (__SUNPRO_C)) && defined(HAVE_VISIBILITY)
|
||||
#define TELETONE_API(type) __attribute__((visibility("default"))) type
|
||||
#define TELETONE_API_NONSTD(type) __attribute__((visibility("default"))) type
|
||||
#define TELETONE_API_DATA __attribute__((visibility("default")))
|
||||
#else
|
||||
#define TELETONE_API(type) type
|
||||
#define TELETONE_API_NONSTD(type) type
|
||||
#define TELETONE_API_DATA
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <libteletone_generate.h>
|
||||
|
Reference in New Issue
Block a user