Browse Source

macosx/framework: added a hack to fix compilation on Snow Leopard against the 10.5 SDK

Felix Paul Kühne 16 years ago
parent
commit
33fa62bbba
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Sources/VLCMediaPlayer.m

+ 4 - 0
Sources/VLCMediaPlayer.m

@@ -34,6 +34,10 @@
 
 
 /* prevent system sleep */
 /* prevent system sleep */
 #import <CoreServices/CoreServices.h>
 #import <CoreServices/CoreServices.h>
+/* FIXME: Ugly hack! */
+#ifdef __x86_64__
+#import <CoreServices/../Frameworks/OSServices.framework/Headers/Power.h>
+#endif
 
 
 #include <vlc/vlc.h>
 #include <vlc/vlc.h>