emulator: remove compiler warnings and error on Windows.
authorKitae Kim <kt920.kim@samsung.com>
Tue, 22 Jan 2013 08:19:07 +0000 (17:19 +0900)
committerKitae Kim <kt920.kim@samsung.com>
Tue, 22 Jan 2013 08:45:21 +0000 (17:45 +0900)
DIV variable was not difined.

Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
tizen/src/emulator.c
tizen/src/osutil-win32.c
tizen/src/skin/maruskin_client.c
tizen/src/skin/maruskin_client.h

index c35a3df..fb39554 100644 (file)
 #include <SDL.h>
 #endif
 
-#if defined(CONFIG_WIN32)
-#include <windows.h>
-#elif defined(CONFIG_LINUX)
-#elif defined(CONFIG_DARWIN)
+#ifndef CONFIG_WIN32
 #include "ns_event.h"
 #endif
 
index 65b4731..02555ce 100644 (file)
@@ -143,8 +143,8 @@ void print_system_info_os(void)
     osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
 
     if (GetVersionEx(&osvi)) {
-        INFO("* MajorVersion : %d, MinorVersion : %d, BuildNumber : %d, \
-            PlatformId : %d, CSDVersion : %s\n", osvi.dwMajorVersion,
+        INFO("* MajorVersion : %d, MinorVersion : %d, BuildNumber : %d, "
+            "PlatformId : %d, CSDVersion : %s\n", osvi.dwMajorVersion,
             osvi.dwMinorVersion, osvi.dwBuildNumber,
             osvi.dwPlatformId, osvi.szCSDVersion);
     }
@@ -161,5 +161,5 @@ void print_system_info_os(void)
     memInfo.dwLength = sizeof(MEMORYSTATUSEX);
     GlobalMemoryStatusEx(&memInfo);
     INFO("* Total Ram : %llu kB, Free: %lld kB\n",
-            memInfo.ullTotalPhys / DIV, memInfo.ullAvailPhys / DIV);
+            memInfo.ullTotalPhys / 1024, memInfo.ullAvailPhys / 1024);
 }
index a89c26f..24722f9 100644 (file)
@@ -49,7 +49,6 @@
 
 MULTI_DEBUG_CHANNEL(qemu, skin_client);
 
-
 #define SKIN_SERVER_READY_TIME 3 // second
 #define SKIN_SERVER_SLEEP_TIME 10 // milli second
 
@@ -65,6 +64,10 @@ extern int tizen_base_port;
 static int skin_argc;
 static char** skin_argv;
 
+#ifdef CONFIG_WIN32
+static char* JAVA_EXEFILE_PATH = NULL;
+#endif
+
 static void* run_skin_client(void* arg)
 {
     char cmd[JAVA_MAX_COMMAND_LENGTH] = { 0, };
@@ -156,7 +159,7 @@ static void* run_skin_client(void* arg)
 #ifdef CONFIG_WIN32
     // for 64bit windows
     free(JAVA_EXEFILE_PATH);
-    JAVA_EXEFILE_PATH=0;
+    JAVA_EXEFILE_PATH = NULL;
 
     //WinExec( cmd, SW_SHOW );
     {
index 9c3707d..4c42cc6 100644 (file)
@@ -49,7 +49,6 @@
 #define  MY_KEY_WOW64_64KEY 0x0100
 int is_wow64(void);
 int get_java_path(char**);
-static char* JAVA_EXEFILE_PATH = 0;
 #else
 #define JAVA_EXEFILE_PATH "java"
 #endif