diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-11-03 04:57:19 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-11-03 04:57:19 +0000 |
commit | 3bc74a049fbc031e86d2a9bebd0c7fb3a24fc3ae (patch) | |
tree | 93657cbffdb38033955897a28ce4308b614c4dc0 /keyboard_light.c | |
parent | aa72cd89981f7e63a383580c9599d6233f188661 (diff) |
only use new 10.5+ API on 10.6+ as an easy way to filter against PowerPC builds which still run on 10.4 since 10.6 does not support PowerPC
svn path=/trunk/externals/apple/; revision=15696
Diffstat (limited to 'keyboard_light.c')
-rw-r--r-- | keyboard_light.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboard_light.c b/keyboard_light.c index 042d7c7..2694c04 100644 --- a/keyboard_light.c +++ b/keyboard_light.c @@ -133,9 +133,9 @@ static void keyboard_light_float(t_keyboard_light* x, t_float f) brightness = BRIGHTNESS_MAX; #if !defined(__LP64__) - // Check if Mac OS X 10.5 API is available... + // Check if Mac OS X 10.5/10.6 API is available... SInt32 MacVersion; - if ((Gestalt(gestaltSystemVersion, &MacVersion) == noErr) && (MacVersion >= 0x1050)) { + if ((Gestalt(gestaltSystemVersion, &MacVersion) == noErr) && (MacVersion >= 0x1060)) { // ...and use it if it is. #endif #ifdef AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER |