This commit is contained in:
Бранимир Караџић
2022-08-15 21:18:40 -07:00
parent 715b2baeef
commit b4046a0f13
2 changed files with 17 additions and 2 deletions

View File

@@ -337,6 +337,12 @@ extern "C" int fscanf(FILE* _stream, const char* _format, ...)
return -1;
}
extern "C" int __isoc99_fscanf(FILE* _stream, const char* _format, ...)
{
BX_UNUSED(_stream, _format);
return -1;
}
FILE * stdout;
extern "C" FILE* fopen(const char* _filename, const char* _mode)
@@ -600,6 +606,11 @@ extern "C" void free(void* _ptr)
crt0::realloc(_ptr, 0);
}
extern "C" void exit(int _exitCode)
{
crt0::exit(_exitCode);
}
#endif // BX_PLATFORM_*
extern "C" void abort(void)
@@ -620,6 +631,10 @@ void operator delete(void*)
{
}
void operator delete(void*, size_t)
{
}
extern "C" void __cxa_pure_virtual(void)
{
}

View File

@@ -279,7 +279,7 @@ namespace bx
return false;
}
m_fd = crt0::open(_filePath.get(), crt0::Open::Read, 0);
m_fd = crt0::open(_filePath.getCPtr(), crt0::Open::Read, 0);
if (0 >= m_fd)
{
@@ -360,7 +360,7 @@ namespace bx
return false;
}
m_fd = crt0::open(_filePath.get(), _append ? crt0::Open::Append : crt0::Open::Write, 0600);
m_fd = crt0::open(_filePath.getCPtr(), _append ? crt0::Open::Append : crt0::Open::Write, 0600);
if (0 >= m_fd)
{