Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
belle-sip
Commits
2131fed1
Commit
2131fed1
authored
Feb 09, 2015
by
jehan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable objc modules for using @import instead of #import
parent
90433f7e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
configure.ac
configure.ac
+1
-0
src/backgroundtask.m
src/backgroundtask.m
+1
-1
src/belle_sip_object.c
src/belle_sip_object.c
+3
-1
No files found.
configure.ac
View file @
2131fed1
...
...
@@ -50,6 +50,7 @@ case "$target" in
LIBS="$LIBS -mmacosx-version-min=10.6 -framework Foundation"
CXXFLAGS="$CXXFLAGS -mmacosx-version-min=10.6"
CFLAGS="$CFLAGS -mmacosx-version-min=10.6"
OBJCFLAGS="$OBJCFLAGS -fmodules"
build_apple=yes
;;
i386-apple*|armv6-apple*|armv7-apple*|armv7s-apple*|arm64-apple*|aarch64-apple*)
...
...
src/backgroundtask.m
View file @
2131fed1
...
...
@@ -67,7 +67,7 @@ void belle_sip_end_background_task(unsigned long id){
#else
/*mac*/
#
import
<
Foundation
/NSProcessinfo.h>
@
import
Foundation
;
static
unsigned
long
dummy_id
=
0
;
static
id
activity_id
=
0
;
...
...
src/belle_sip_object.c
View file @
2131fed1
...
...
@@ -76,7 +76,9 @@ void belle_sip_object_dump_active_objects(void){
belle_sip_message
(
"List of leaked objects:"
);
for
(
elem
=
all_objects
;
elem
!=
NULL
;
elem
=
elem
->
next
){
belle_sip_object_t
*
obj
=
(
belle_sip_object_t
*
)
elem
->
data
;
belle_sip_message
(
"%s(%p) ref=%i"
,
obj
->
vptr
->
type_name
,
obj
,
obj
->
ref
);
char
*
content
=
belle_sip_object_to_string
(
obj
);
belle_sip_message
(
"%s(%p) ref=%i, content [%10s...]"
,
obj
->
vptr
->
type_name
,
obj
,
obj
->
ref
,
content
);
belle_sip_free
(
content
);
}
}
else
belle_sip_message
(
"No objects leaked."
);
}
...
...
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