From: Kitae Kim Date: Wed, 18 Jun 2014 08:43:58 +0000 (+0900) Subject: emulator: fix compile errors on Windows. X-Git-Tag: TizenStudio_2.0_p3.0~398^2~126^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=630f6a45d57a30bf3e8c67f0bc26aae23343351b;p=sdk%2Femulator%2Fqemu.git emulator: fix compile errors on Windows. Change-Id: I3ad1365b837c5e22865c935ff82a5d0671565815 Signed-off-by: Kitae Kim --- diff --git a/tizen/src/emulator.c b/tizen/src/emulator.c index 4e43cac..0109815 100644 --- a/tizen/src/emulator.c +++ b/tizen/src/emulator.c @@ -52,6 +52,10 @@ #include #endif +#ifdef CONFIG_WIN32 +#include +#endif + #ifdef CONFIG_DARWIN #include "ns_event.h" int thread_running = 1; /* Check if we need exit main */ diff --git a/tizen/src/osutil-win32.c b/tizen/src/osutil-win32.c index 81edc39..457279b 100644 --- a/tizen/src/osutil-win32.c +++ b/tizen/src/osutil-win32.c @@ -137,7 +137,7 @@ void remove_vm_lock_os(void) if (g_pBuf != NULL) { UnmapViewOfFile(g_pBuf); } - if(hMapFile != NULL) { + if (g_hMapFile != NULL) { CloseHandle(g_hMapFile); } }