From a142d70a49328be4bc280f1974bfcc3dd388da54 Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Mon, 28 Nov 2005 01:19:38 +0000 Subject: [PATCH] more win32 stuff --- common/os_calls.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/common/os_calls.c b/common/os_calls.c index 0a9d022b..9adbeeec 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -571,7 +571,7 @@ char* g_get_current_dir(char* dirname, int maxlen) { #if defined(_WIN32) - return 0; + return GetCurrentDirectory(maxlen, dirname); #else return getcwd(dirname, maxlen); #endif @@ -582,7 +582,7 @@ int g_set_current_dir(char* dirname) { #if defined(_WIN32) - return 0; + return SetCurrentDirectory(dirname); #else return chdir(dirname); #endif @@ -594,7 +594,7 @@ int g_file_exist(char* filename) { #if defined(_WIN32) - return 0; + return 0; // use FindFirstFile(); #else return access(filename, F_OK) == 0; #endif @@ -938,10 +938,7 @@ g_getenv(char* name) int g_exit(int exit_code) { -#if defined(_WIN32) -#else _exit(exit_code); -#endif return 0; }