[vlc-devel] commit: macosx/framework: added a hack to fix compilation on Snow Leopard against the 10.5 SDK ( Felix Paul Kühne )

git version control git at videolan.org
Wed Sep 2 23:22:11 CEST 2009


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Sep  2 23:22:07 2009 +0200| [36802441e4877399269aa50b5289de7f1e1d67ef] | committer: Felix Paul Kühne 

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=36802441e4877399269aa50b5289de7f1e1d67ef
---

 projects/macosx/framework/Sources/VLCMediaPlayer.m |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/projects/macosx/framework/Sources/VLCMediaPlayer.m b/projects/macosx/framework/Sources/VLCMediaPlayer.m
index 982dc87..a386b62 100644
--- a/projects/macosx/framework/Sources/VLCMediaPlayer.m
+++ b/projects/macosx/framework/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>
 




More information about the vlc-devel mailing list