diff options
-rw-r--r-- | ambient_light_sensor.c | 4 | ||||
-rw-r--r-- | keyboard_light.c | 4 | ||||
-rw-r--r-- | smc.c | 4 | ||||
-rw-r--r-- | sudden_motion_sensor.c | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/ambient_light_sensor.c b/ambient_light_sensor.c index 26c18db..822057d 100644 --- a/ambient_light_sensor.c +++ b/ambient_light_sensor.c @@ -76,9 +76,9 @@ static void ambient_light_sensor_output(t_ambient_light_sensor* x) if(! x->io_connect) return; #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 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 @@ -167,9 +167,9 @@ kern_return_t SMCCall(int index, SMCKeyData_t *inputStructure, SMCKeyData_t *out structureInputSize = sizeof(SMCKeyData_t); structureOutputSize = sizeof(SMCKeyData_t); #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 diff --git a/sudden_motion_sensor.c b/sudden_motion_sensor.c index 71f170a..0002f6e 100644 --- a/sudden_motion_sensor.c +++ b/sudden_motion_sensor.c @@ -144,9 +144,9 @@ FOUND_SENSOR: memset(&outputStructure, 0, sizeof(outputStructure)); #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 |