osutil: Change os dependent variable 71/29471/1
authorMunkyu Im <munkyu.im@samsung.com>
Tue, 28 Oct 2014 09:29:26 +0000 (18:29 +0900)
committerMunkyu Im <munkyu.im@samsung.com>
Tue, 28 Oct 2014 09:29:26 +0000 (18:29 +0900)
Not use "#define... #endif" but use extern variable.

Change-Id: I4e63ef019bfc42af4d0aaf440257c77bb39a37fe
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
tizen/src/util/osutil-win32.c
tizen/src/util/osutil.c
tizen/src/util/osutil.h

index bd07447..9efef47 100644 (file)
@@ -56,7 +56,6 @@ static char *g_pBuf;
 
 extern char tizen_target_img_path[];
 static char g_sdcard[256] = {0,};
-static sdcard_info info;
 
 static const char *pactempfile = ".autoproxy";
 
index a3b4855..9e6f9ba 100644 (file)
@@ -43,9 +43,7 @@
 MULTI_DEBUG_CHANNEL(emulator, osutil);
 
 
-#ifndef CONFIG_WIN32
-static sdcard_info info;
-#endif
+sdcard_info info;
 const char *pac_tempfile = ".autoproxy";
 
 inline size_t write_data(void *ptr, size_t size, size_t nmemb, FILE *stream)
index 2997a78..c858726 100644 (file)
@@ -80,8 +80,8 @@ typedef struct sdcard_info
     HANDLE handle;
 #endif
     char* lock_file; /* reserved for future use */
-}sdcard_info;
-
+} sdcard_info;
+extern sdcard_info info;
 
 #ifndef CONFIG_WIN32
 bool make_sdcard_lock_posix(char *sdcard);