more win32 stuff

This commit is contained in:
jsorg71 2005-11-28 01:19:38 +00:00
parent 754efcabb1
commit a142d70a49
1 changed files with 3 additions and 6 deletions

View File

@ -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;
}