From: Andrey Kamaev Date: Tue, 26 Jun 2012 09:21:22 +0000 (+0000) Subject: Fixing iOS detection in core persistence X-Git-Tag: accepted/2.0/20130307.220821~364^2~532 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f8e271509c44f1733a032be9743af2e87ae6000;p=profile%2Fivi%2Fopencv.git Fixing iOS detection in core persistence --- diff --git a/modules/core/src/persistence.cpp b/modules/core/src/persistence.cpp index 74644ef..c880aa8 100644 --- a/modules/core/src/persistence.cpp +++ b/modules/core/src/persistence.cpp @@ -50,12 +50,12 @@ #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