VLC_ADD_LDFLAGS([mkv mp4], [-framework IOKit -framework CoreFoundation])
VLC_ADD_CFLAGS([libvlc vlc],[-x objective-c])
VLC_ADD_LDFLAGS([vlc],[-undefined dynamic_lookup])
+ VLC_ADD_CFLAGS([motion],[-fconstant-cfstrings])
VLC_ADD_LDFLAGS([motion],[-framework IOKit -framework CoreFoundation])
AC_ARG_ENABLE(macosx-defaults,
[ --enable-macosx-defaults Build the default configuration on Mac OS X (default enabled)])
if ( !ret )
return 0;
- CFStringRef app = CFSTR("com.ramsayl.UniMotion");
- CFStringRef xoffstr = CFSTR("x_offset");
- CFStringRef yoffstr = CFSTR("y_offset");
- CFStringRef zoffstr = CFSTR("z_offset");
+ static CFStringRef app = CFSTR("com.ramsayl.UniMotion");
+ static CFStringRef xoffstr = CFSTR("x_offset");
+ static CFStringRef yoffstr = CFSTR("y_offset");
+ static CFStringRef zoffstr = CFSTR("z_offset");
xoff = CFPreferencesGetAppIntegerValue(xoffstr, app, &ok);
if ( ok ) _x += xoff;
yoff = CFPreferencesGetAppIntegerValue(yoffstr, app, &ok);