Commit 6c715fb5 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix WINAPI_FAMILY_PARTITION crazyness.

parent aa976d0f
...@@ -133,6 +133,8 @@ static BELLESIP_INLINE int inet_aton(const char *ip, struct in_addr *p){ ...@@ -133,6 +133,8 @@ static BELLESIP_INLINE int inet_aton(const char *ip, struct in_addr *p){
#else #else
#define WINAPI_FAMILY_PARTITION(x) 1
typedef pthread_t belle_sip_thread_t; typedef pthread_t belle_sip_thread_t;
#define belle_sip_thread_self_id() (unsigned long)pthread_self() #define belle_sip_thread_self_id() (unsigned long)pthread_self()
#define belle_sip_thread_get_id(thread) (unsigned long)thread #define belle_sip_thread_get_id(thread) (unsigned long)thread
......
...@@ -321,17 +321,7 @@ void helper(const char *name) { ...@@ -321,17 +321,7 @@ void helper(const char *name) {
} }
#define NEED_MAIN 1 #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
#if 0
#ifdef WINAPI_FAMILY_PARTITION
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PHONE)
#undef NEED_MAIN
#endif
#endif
#endif
#ifdef NEED_MAIN
int main (int argc, char *argv[]) { int main (int argc, char *argv[]) {
int i; int i;
int ret; int ret;
......
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