summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-04-23 08:43:20 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-04-23 08:44:01 (GMT)
commit2263651d015c4c8dd4f9ab08a7a3c7c0efbe6ce7 (patch)
tree61f261c08d80d3fa6bad443b56c38d4f26f3b405 /Swiften
parent88b7c50dd30898fb77bc693d0cb5ad9c7a559c27 (diff)
downloadswift-2263651d015c4c8dd4f9ab08a7a3c7c0efbe6ce7.zip
swift-2263651d015c4c8dd4f9ab08a7a3c7c0efbe6ce7.tar.bz2
Fixed platform detection.
This fixes auto-away on OS X. Resolves: #1082
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/Base/Platform.h2
1 files changed, 1 insertions, 1 deletions
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)