Fixing iOS detection in core persistence
authorAndrey Kamaev <no@email>
Tue, 26 Jun 2012 09:21:22 +0000 (09:21 +0000)
committerAndrey Kamaev <no@email>
Tue, 26 Jun 2012 09:21:22 +0000 (09:21 +0000)
modules/core/src/persistence.cpp

index 74644ef..c880aa8 100644 (file)
 #define USE_ZLIB 1
 
 #ifdef __APPLE__
-#include "TargetConditionals.h"
-#if defined TARGET_OS_IPHONE || defined TARGET_IPHONE_SIMULATOR
-#undef USE_ZLIB
-#define USE_ZLIB 0
-typedef void* gzFile;
-#endif
+#  include "TargetConditionals.h"
+#  if (defined TARGET_OS_IPHONE && TARGET_OS_IPHONE) || (defined TARGET_IPHONE_SIMULATOR && TARGET_IPHONE_SIMULATOR)
+#    undef USE_ZLIB
+#    define USE_ZLIB 0
+     typedef void* gzFile;
+#  endif
 #endif
 
 #if USE_ZLIB