COMP: Fixing the the build for windows.
This commit is contained in:
parent
4e586c822f
commit
2b5d8e84c9
@ -118,12 +118,14 @@ inline int Rmdir(const char* dir)
|
|||||||
}
|
}
|
||||||
inline const char* Getcwd(char* buf, unsigned int len)
|
inline const char* Getcwd(char* buf, unsigned int len)
|
||||||
{
|
{
|
||||||
const char* ret _getcwd(buf, len);
|
const char* ret = _getcwd(buf, len);
|
||||||
if(!ret)
|
if(!ret)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "No current working directory.\n");
|
fprintf(stderr, "No current working directory.\n");
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
inline int Chdir(const char* dir)
|
inline int Chdir(const char* dir)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user