Commit 2131fed1 authored by jehan's avatar jehan
Browse files

enable objc modules for using @import instead of #import

parent 90433f7e
...@@ -50,6 +50,7 @@ case "$target" in ...@@ -50,6 +50,7 @@ case "$target" in
LIBS="$LIBS -mmacosx-version-min=10.6 -framework Foundation" LIBS="$LIBS -mmacosx-version-min=10.6 -framework Foundation"
CXXFLAGS="$CXXFLAGS -mmacosx-version-min=10.6" CXXFLAGS="$CXXFLAGS -mmacosx-version-min=10.6"
CFLAGS="$CFLAGS -mmacosx-version-min=10.6" CFLAGS="$CFLAGS -mmacosx-version-min=10.6"
OBJCFLAGS="$OBJCFLAGS -fmodules"
build_apple=yes build_apple=yes
;; ;;
i386-apple*|armv6-apple*|armv7-apple*|armv7s-apple*|arm64-apple*|aarch64-apple*) i386-apple*|armv6-apple*|armv7-apple*|armv7s-apple*|arm64-apple*|aarch64-apple*)
......
...@@ -67,7 +67,7 @@ void belle_sip_end_background_task(unsigned long id){ ...@@ -67,7 +67,7 @@ void belle_sip_end_background_task(unsigned long id){
#else #else
/*mac*/ /*mac*/
#import <Foundation/NSProcessinfo.h> @import Foundation;
static unsigned long dummy_id=0; static unsigned long dummy_id=0;
static id activity_id=0; static id activity_id=0;
......
...@@ -76,7 +76,9 @@ void belle_sip_object_dump_active_objects(void){ ...@@ -76,7 +76,9 @@ void belle_sip_object_dump_active_objects(void){
belle_sip_message("List of leaked objects:"); belle_sip_message("List of leaked objects:");
for(elem=all_objects;elem!=NULL;elem=elem->next){ for(elem=all_objects;elem!=NULL;elem=elem->next){
belle_sip_object_t *obj=(belle_sip_object_t*)elem->data; 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."); }else belle_sip_message("No objects leaked.");
} }
......
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