Added missing exit() declaration and missing SEEK_ macros.

This commit is contained in:
Patrick 2024-02-02 00:13:52 +01:00
parent 918aab5b2e
commit 9b9d5ade09
2 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,10 @@
#define stderr __stderr #define stderr __stderr
#define stdin __stdin #define stdin __stdin
#define SEEK_SET 1
#define SEEK_CUR 2
#define SEEK_END 3
BA_EXTERN_C_BEGIN BA_EXTERN_C_BEGIN
typedef struct __file FILE; typedef struct __file FILE;

View File

@ -11,6 +11,7 @@ BA_EXTERN_C_BEGIN
BA_CXX_NORETURN void abort(); BA_CXX_NORETURN void abort();
int atexit(void (*func)()) BA_CXX_NOEXCEPT; int atexit(void (*func)()) BA_CXX_NOEXCEPT;
BA_CXX_NORETURN void exit(int exitCode) BA_CXX_NOEXCEPT;
BA_CXX_NODISCARD char* getenv(const char* name) BA_CXX_NOEXCEPT; BA_CXX_NODISCARD char* getenv(const char* name) BA_CXX_NOEXCEPT;
BA_CXX_NODISCARD int abs(int n) BA_CXX_NOEXCEPT; BA_CXX_NODISCARD int abs(int n) BA_CXX_NOEXCEPT;