Update compatibility layer.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2020-02-29 10:29:46 +00:00
parent c3dedef7c9
commit 9eb21251cb
2 changed files with 6 additions and 2 deletions

View file

@ -37,8 +37,10 @@ void LeaveCriticalSection(CRITICAL_SECTION * criticalSection)
}
bool SetCurrentImageDir(const std::string & dir ) {
chdir(dir.c_str());
if (chdir(dir.c_str()) == 0)
return true;
else
return false;
}
void OutputDebugString(const char * str)

View file

@ -7,6 +7,8 @@
void strcpy_s(char * dest, size_t size, const char * source);
#define sprintf_s snprintf
#define _strdup strdup
#define _strtoui64 strtoull
#define _vsntprintf vsnprintf