Преглед изворни кода

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

Felix Paul Kühne пре 16 година
родитељ
комит
33fa62bbba
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      Sources/VLCMediaPlayer.m

+ 4 - 0
Sources/VLCMediaPlayer.m

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