mirror of
https://github.com/JannisHeydemann/BoredOS.git
synced 2026-05-30 10:26:59 +00:00
feature: added third_party TCC into userland
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "stdlib.h"
|
||||
char **environ = 0;
|
||||
#include "string.h"
|
||||
#include "errno.h"
|
||||
#include "syscall.h"
|
||||
@@ -176,3 +177,11 @@ __attribute__((weak)) double strtod(const char *nptr, char **endptr) {
|
||||
}
|
||||
return sign * value;
|
||||
}
|
||||
|
||||
__attribute__((weak)) float strtof(const char *nptr, char **endptr) {
|
||||
return (float)strtod(nptr, endptr);
|
||||
}
|
||||
|
||||
__attribute__((weak)) long double strtold(const char *nptr, char **endptr) {
|
||||
return (long double)strtod(nptr, endptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user