mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Cleanup.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user