diff options
author | 2023-01-05 15:32:40 +0100 | |
---|---|---|
committer | 2023-01-05 09:32:40 -0500 | |
commit | 812e6094f47bb8d1da5a6b421aa4c724cf2035c0 (patch) | |
tree | 0f5bab2fe9393d1f629e9bf63e76cecca74ec0c9 /3rdparty/bx/src/crtnone.cpp | |
parent | 4a1b41854bba8fc2567906b88bab8ca81e75d187 (diff) |
Update BGFX, BX and BIMG (#10789)
* Update to bgfx a93a714632b79b5ddbf5c86ac323fa9b76ed3433
Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
Diffstat (limited to '3rdparty/bx/src/crtnone.cpp')
-rw-r--r-- | 3rdparty/bx/src/crtnone.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/3rdparty/bx/src/crtnone.cpp b/3rdparty/bx/src/crtnone.cpp index 7852f374f44..6abdeeeb67f 100644 --- a/3rdparty/bx/src/crtnone.cpp +++ b/3rdparty/bx/src/crtnone.cpp @@ -1,9 +1,8 @@ /* - * Copyright 2010-2021 Branimir Karadzic. All rights reserved. - * License: https://github.com/bkaradzic/bx#license-bsd-2-clause + * Copyright 2010-2022 Branimir Karadzic. All rights reserved. + * License: https://github.com/bkaradzic/bx/blob/master/LICENSE */ -#include "bx_p.h" #include <bx/debug.h> #include <bx/file.h> #include <bx/math.h> @@ -338,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) @@ -601,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) @@ -621,6 +631,10 @@ void operator delete(void*) { } +void operator delete(void*, size_t) +{ +} + extern "C" void __cxa_pure_virtual(void) { } |