提交 2284ef09 编写于 作者: P Palana

compile libobs with -fobjc-arc

上级 78e581a3
......@@ -7,7 +7,9 @@ elseif(APPLE AND UNIX)
obs-cocoa.c
util/platform-cocoa.m)
set_source_files_properties(${libobs_platform_src}
PROPERTIES LANGUAGE C)
PROPERTIES
LANGUAGE C
COMPILE_FLAGS "-fobjc-arc")
add_definitions("-DHAVE_STRTOLL")
find_library(COCOA Cocoa)
mark_as_advanced(COCOA)
......
......@@ -110,7 +110,7 @@ char *os_get_home_path(void)
if([paths count] == 0)
bcrash("Could not get home directory (platform-cocoa)");
NSString *application_support = paths[0];// objectAtIndex:0];
NSString *application_support = paths[0];
NSUInteger len = [application_support
lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
......@@ -121,10 +121,6 @@ char *os_get_home_path(void)
memcpy(path, [application_support UTF8String], len);
[application_support release];
[paths release];
return path;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册