Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
6c715fb5
Commit
6c715fb5
authored
Feb 27, 2015
by
Ghislain MARY
Browse files
Fix WINAPI_FAMILY_PARTITION crazyness.
parent
aa976d0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
src/port.h
src/port.h
+2
-0
tester/belle_sip_tester.c
tester/belle_sip_tester.c
+1
-11
No files found.
src/port.h
View file @
6c715fb5
...
@@ -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
...
...
tester/belle_sip_tester.c
View file @
6c715fb5
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment