浏览代码

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>