diff options
Diffstat (limited to 'sudden_motion_sensor.c')
-rw-r--r-- | sudden_motion_sensor.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |