[vlc-commits] macosx: update check for Lion and add another one for Mountain Lion
Felix Paul Kühne
git at videolan.org
Wed Aug 22 11:06:49 CEST 2012
vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Aug 22 11:02:57 2012 +0200| [fc6d6a0e5d394dd3538ff72e216ed53404ba894a] | committer: Felix Paul Kühne
macosx: update check for Lion and add another one for Mountain Lion
(cherry picked from commit 0849d6e510d6e46a9a90f24d96fc800dfbdeb998)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=fc6d6a0e5d394dd3538ff72e216ed53404ba894a
---
modules/gui/macosx/CompatibilityFixes.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/gui/macosx/CompatibilityFixes.h b/modules/gui/macosx/CompatibilityFixes.h
index ebcf5dd..fda48c1 100644
--- a/modules/gui/macosx/CompatibilityFixes.h
+++ b/modules/gui/macosx/CompatibilityFixes.h
@@ -27,7 +27,8 @@
#pragma OS detection code
#define OSX_LEOPARD (NSAppKitVersionNumber < 1038 && NSAppKitVersionNumber >= 949)
#define OSX_SNOW_LEOPARD (NSAppKitVersionNumber < 1115 && NSAppKitVersionNumber >= 1038)
-#define OSX_LION NSAppKitVersionNumber >= 1115.2
+#define OSX_LION (NSAppKitVersionNumber < 1162 && NSAppKitVersionNumber >= 1115.2)
+#define OSX_MOUNTAIN_LION NSAppKitVersionNumber >= 1162
#pragma mark -
#pragma Fixes for OS X Leopard (10.5)
More information about the vlc-commits
mailing list