Update compatibility layer.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
c3dedef7c9
commit
9eb21251cb
2 changed files with 6 additions and 2 deletions
|
@ -37,8 +37,10 @@ void LeaveCriticalSection(CRITICAL_SECTION * criticalSection)
|
|||
}
|
||||
|
||||
bool SetCurrentImageDir(const std::string & dir ) {
|
||||
chdir(dir.c_str());
|
||||
return true;
|
||||
if (chdir(dir.c_str()) == 0)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
void OutputDebugString(const char * str)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue