diff --git a/libs/openzap/src/include/openzap.h b/libs/openzap/src/include/openzap.h index 937a69f502..4c14ef845d 100644 --- a/libs/openzap/src/include/openzap.h +++ b/libs/openzap/src/include/openzap.h @@ -66,6 +66,7 @@ #define OZ_DECLARE_NONSTD(type) __declspec(dllimport) type __cdecl #define OZ_DECLARE_DATA __declspec(dllimport) #endif +#define EX_DECLARE_DATA __declspec(dllexport) #else #if (defined(__GNUC__) || defined(__SUNPRO_CC) || defined (__SUNPRO_C)) && defined(HAVE_VISIBILITY) #define OZ_DECLARE(type) __attribute__((visibility("default"))) type @@ -76,6 +77,7 @@ #define OZ_DECLARE_NONSTD(type) type #define OZ_DECLARE_DATA #endif +#define EX_DECLARE_DATA #endif #ifdef _MSC_VER diff --git a/libs/openzap/src/ozmod/ozmod_analog/ozmod_analog.c b/libs/openzap/src/ozmod/ozmod_analog/ozmod_analog.c index 9dcd8d64fd..20de17dbd1 100644 --- a/libs/openzap/src/ozmod/ozmod_analog/ozmod_analog.c +++ b/libs/openzap/src/ozmod/ozmod_analog/ozmod_analog.c @@ -977,7 +977,7 @@ static ZIO_SIG_LOAD_FUNCTION(zap_analog_init) /** * \brief Openzap analog signaling module definition */ -zap_module_t zap_module = { +EX_DECLARE_DATA zap_module_t zap_module = { "analog", NULL, NULL, diff --git a/libs/openzap/src/ozmod/ozmod_analog_em/ozmod_analog_em.c b/libs/openzap/src/ozmod/ozmod_analog_em/ozmod_analog_em.c index 72da381500..3a8e9a2156 100644 --- a/libs/openzap/src/ozmod/ozmod_analog_em/ozmod_analog_em.c +++ b/libs/openzap/src/ozmod/ozmod_analog_em/ozmod_analog_em.c @@ -686,7 +686,7 @@ static ZIO_SIG_LOAD_FUNCTION(zap_analog_em_init) /** * \brief Openzap analog EM module definition */ -zap_module_t zap_module = { +EX_DECLARE_DATA zap_module_t zap_module = { "analog_em", NULL, NULL, diff --git a/libs/openzap/src/ozmod/ozmod_isdn/ozmod_isdn.c b/libs/openzap/src/ozmod/ozmod_isdn/ozmod_isdn.c index 213def357e..192a4446a2 100644 --- a/libs/openzap/src/ozmod/ozmod_isdn/ozmod_isdn.c +++ b/libs/openzap/src/ozmod/ozmod_isdn/ozmod_isdn.c @@ -2347,7 +2347,7 @@ static ZIO_SIG_CONFIGURE_FUNCTION(zap_isdn_configure_span) /** * \brief Openzap ISDN signaling module definition */ -zap_module_t zap_module = { +EX_DECLARE_DATA zap_module_t zap_module = { "isdn", NULL, close_pcap, diff --git a/libs/openzap/src/ozmod/ozmod_pika/ozmod_pika.c b/libs/openzap/src/ozmod/ozmod_pika/ozmod_pika.c index 26f72d7f7c..995c6df554 100644 --- a/libs/openzap/src/ozmod/ozmod_pika/ozmod_pika.c +++ b/libs/openzap/src/ozmod/ozmod_pika/ozmod_pika.c @@ -35,11 +35,6 @@ #include "openzap.h" #include "zap_pika.h" -#if defined(__WINDOWS__) -#define EX_DECLARE_DATA __declspec(dllexport) -#else -EX_DECLARE_DATA -#endif #define MAX_NUMBER_OF_TRUNKS 64 #define PIKA_BLOCK_SIZE 160 diff --git a/libs/openzap/src/ozmod/ozmod_wanpipe/ozmod_wanpipe.c b/libs/openzap/src/ozmod/ozmod_wanpipe/ozmod_wanpipe.c index 038f1c8b37..9dcd6e5ae2 100644 --- a/libs/openzap/src/ozmod/ozmod_wanpipe/ozmod_wanpipe.c +++ b/libs/openzap/src/ozmod/ozmod_wanpipe/ozmod_wanpipe.c @@ -60,9 +60,6 @@ #define sangoma_sendmsg_socket sangoma_writemsg #define sangoma_writemsg_tdm sangoma_writemsg #define sangoma_create_socket_intr sangoma_open_api_span_chan -#define EX_DECLARE_DATA __declspec(dllexport) -#else -#define EX_DECLARE_DATA #endif /**