feature: added third_party TCC into userland

This commit is contained in:
boreddevnl
2026-05-09 01:11:29 +02:00
parent a62b22faa9
commit 230e404a98
57 changed files with 1289 additions and 26 deletions

View File

@@ -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);
}