From 2263651d015c4c8dd4f9ab08a7a3c7c0efbe6ce7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be> Date: Mon, 23 Apr 2012 10:43:20 +0200 Subject: Fixed platform detection. This fixes auto-away on OS X. Resolves: #1082 diff --git a/Swiften/Base/Platform.h b/Swiften/Base/Platform.h index 395747c..a22f556 100644 --- a/Swiften/Base/Platform.h +++ b/Swiften/Base/Platform.h @@ -26,7 +26,7 @@ #elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) #define SWIFTEN_PLATFORM_MACOSX #include <TargetConditionals.h> -# if defined(TARGET_OS_IPHONE) +# if TARGET_OS_IPHONE == 1 # define SWIFTEN_PLATFORM_IPHONE # endif #elif defined(__IBMCPP__) || defined(_AIX) -- cgit v0.10.2-6-g49f6