Commit 7dd2e9ff authored by Ghislain MARY's avatar Ghislain MARY

Fix build of tests with Visual Studio.

parent 41e5b77d
......@@ -158,7 +158,10 @@ if(APPLE)
set(LINK_FLAGS "${LINK_FLAGS} -framework CoreFoundation -framework CFNetwork")
endif()
if(WIN32)
add_definitions(-DBELLESIP_EXPORTS)
add_definitions(
-DBELLESIP_EXPORTS
-DBELLESIP_INTERNAL_EXPORTS
)
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/FindBelleSIP.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/FindBelleSIP.cmake @ONLY)
......
......@@ -324,7 +324,7 @@ char *belle_sip_object_describe(void *obj);
/**
* Returns a string describing the inheritance diagram and implemented interfaces of an object given its type name.
**/
char *belle_sip_object_describe_type_from_name(const char *name);
BELLESIP_EXPORT char *belle_sip_object_describe_type_from_name(const char *name);
BELLESIP_EXPORT void *belle_sip_object_cast(belle_sip_object_t *obj, belle_sip_type_id_t id, const char *castname, const char *file, int fileno);
......
......@@ -320,7 +320,7 @@ void helper(const char *name) {
return -1; \
}
#ifndef WINAPI_FAMILY_PHONE_APP
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
int main (int argc, char *argv[]) {
int i;
......
......@@ -22,7 +22,11 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#if WIN32
#define strcasecmp _stricmp
#else
#include <unistd.h>
#endif
#include <string.h>
#include "belle-sip/belle-sip.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment