forked from bartvdbraak/blender
Cocoa: remove errors for all supported SDK/CPU configs
This commit is contained in:
parent
2bf618368a
commit
dd90ffd47b
@ -863,7 +863,11 @@ GHOST_TSuccess GHOST_SystemCocoa::handleApplicationBecomeActiveEvent()
|
|||||||
#else
|
#else
|
||||||
//If build against an older SDK, check if running on 10.6 to use the correct function
|
//If build against an older SDK, check if running on 10.6 to use the correct function
|
||||||
if ([NSEvent respondsToSelector:@selector(modifierFlags)]) {
|
if ([NSEvent respondsToSelector:@selector(modifierFlags)]) {
|
||||||
|
#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
|
||||||
modifiers = (unsigned int)[NSEvent modifierFlags];
|
modifiers = (unsigned int)[NSEvent modifierFlags];
|
||||||
|
#else
|
||||||
|
modifiers = (NSUInteger)[NSEvent modifierFlags];
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//TODO: need to find a better workaround for the missing cocoa "getModifierFlag" function in 10.4/10.5
|
//TODO: need to find a better workaround for the missing cocoa "getModifierFlag" function in 10.4/10.5
|
||||||
|
Loading…
Reference in New Issue
Block a user