Commit b63e7002 authored by Ghislain MARY's avatar Ghislain MARY

Fix compilation with VS2013.

parent e5e0590d
......@@ -596,10 +596,10 @@ uint64_t belle_sip_time_ms(void){
}
#else
uint64_t belle_sip_time_ms(void){
#ifdef WINAPI_FAMILY_PHONE_APP
return GetTickCount64();
#else
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
return GetTickCount();
#else
return GetTickCount64();
#endif
}
#endif
......
......@@ -133,7 +133,7 @@ int belle_sip_thread_key_delete(belle_sip_thread_key_t key){
#endif
}
#ifdef WINAPI_FAMILY_PHONE_APP
#if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
void belle_sip_sleep(unsigned int ms) {
HANDLE sleepEvent = CreateEventEx(NULL, NULL, CREATE_EVENT_MANUAL_RESET, EVENT_ALL_ACCESS);
if (!sleepEvent)
......
......@@ -111,7 +111,7 @@ static BELLESIP_INLINE int get_socket_error(void){
const char *belle_sip_get_socket_error_string();
const char *belle_sip_get_socket_error_string_from_code(int code);
#ifdef WINAPI_FAMILY_PHONE_APP
#if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
BELLESIP_INTERNAL_EXPORT void belle_sip_sleep(unsigned int ms);
#else
#define belle_sip_sleep Sleep
......
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