diff options
author | Sergey Yershov <yershov@corp.mail.ru> | 2016-02-04 16:57:12 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:21:52 +0300 |
commit | 38d253c80bbbef346c99bb7db7d65d08647df836 (patch) | |
tree | 11b3647c62757a40e1c14f4d0e4ea3838de6bab5 /testing | |
parent | 4e80b2560349915fa2d632b3061344bd4b79b88b (diff) |
[new downloader] Fix include for iOS event loop
Diffstat (limited to 'testing')
-rw-r--r-- | testing/testingmain.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testing/testingmain.cpp b/testing/testingmain.cpp index 9e9dd006f0..24726f1384 100644 --- a/testing/testingmain.cpp +++ b/testing/testingmain.cpp @@ -13,6 +13,10 @@ #include "std/target_os.hpp" #include "std/vector.hpp" +#ifdef TARGET_OS_IPHONE +# include <CoreFoundation/CoreFoundation.h> +#endif + #ifndef OMIM_UNIT_TEST_DISABLE_PLATFORM_INIT # include "platform/platform.hpp" #endif @@ -37,7 +41,7 @@ namespace testing void RunEventLoop() { -#if defined(OMIM_OS_IPHONE_DEVICE) +#if defined(OMIM_OS_IPHONE) CFRunLoopRun(); #elif defined (QAPP) QAPP::exec(); @@ -46,7 +50,7 @@ void RunEventLoop() void StopEventLoop() { -#if defined(OMIM_OS_IPHONE_DEVICE) +#if defined(OMIM_OS_IPHONE) CFRunLoopStop(CFRunLoopGetMain()); #elif defined(QAPP) QAPP::exit(); |