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 bd07447651fe48d9482f086c880dbd72015ef77c..9efef47fd53b206e818088ceed1b1fdb6984138f 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 a3b4855b813f7083215e9a8fbd99ed7636e0335d..9e6f9bafc74bec3647299c8dd336d20aac4ae07b 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 2997a78bebec969418ee631cc48469969c95e883..c8587269153a0c758a8a02a1841d0a621c236078 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);