Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testing/testingmain.cpp8
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();