]> git.sesse.net Git - vlc/commitdiff
Trying to fix the build on G5...
authorJérome Decoodt <djc@videolan.org>
Wed, 20 Jun 2007 20:57:43 +0000 (20:57 +0000)
committerJérome Decoodt <djc@videolan.org>
Wed, 20 Jun 2007 20:57:43 +0000 (20:57 +0000)
configure.ac
modules/control/unimotion.c

index 4171971aef15c1c915ab356e7228ec3ce5daf2eb..df3d5d6b8420e89720314ae7789c46558b5c5204 100644 (file)
@@ -173,6 +173,7 @@ case "${host_os}" in
     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)])
index dcf19dc51a6428a093df41ce7692cb7f2e9e82f8..331f7fc99e5efe21dc022eb2e3a979b91c6819f4 100644 (file)
@@ -260,10 +260,10 @@ int read_sms(int type, int *x, int *y, int *z)
     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);