From 3bc74a049fbc031e86d2a9bebd0c7fb3a24fc3ae Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 3 Nov 2011 04:57:19 +0000 Subject: 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 --- ambient_light_sensor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ambient_light_sensor.c') 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 -- cgit v1.2.1