Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Plisson <damien.plisson@yahoo.fr>2009-12-02 16:05:31 +0300
committerDamien Plisson <damien.plisson@yahoo.fr>2009-12-02 16:05:31 +0300
commitdd90ffd47b47d89dbd8c9c76556b1a0c182342e4 (patch)
tree8f920307b65547c82ed3c23c7de93dbedaf8c29f /intern/ghost
parent2bf618368a2181319e5d47b97c60417223f84893 (diff)
Cocoa: remove errors for all supported SDK/CPU configs
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_SystemCocoa.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm
index 0aa9f8d4ac2..f7036f21642 100644
--- a/intern/ghost/intern/GHOST_SystemCocoa.mm
+++ b/intern/ghost/intern/GHOST_SystemCocoa.mm
@@ -863,7 +863,11 @@ GHOST_TSuccess GHOST_SystemCocoa::handleApplicationBecomeActiveEvent()
#else
//If build against an older SDK, check if running on 10.6 to use the correct function
if ([NSEvent respondsToSelector:@selector(modifierFlags)]) {
+#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
modifiers = (unsigned int)[NSEvent modifierFlags];
+#else
+ modifiers = (NSUInteger)[NSEvent modifierFlags];
+#endif
}
else {
//TODO: need to find a better workaround for the missing cocoa "getModifierFlag" function in 10.4/10.5