diff --git a/src/stdlib/strtod.c b/src/stdlib/strtod.c index 1886efa..f923f38 100644 --- a/src/stdlib/strtod.c +++ b/src/stdlib/strtod.c @@ -2,6 +2,7 @@ #include "shgetc.h" #include "floatscan.h" #include "stdio_impl.h" +#include "libc.h" static long double strtox(const char *s, char **p, int prec) { @@ -30,3 +31,5 @@ long double strtold(const char *s, char **p) { return strtox(s, p, 2); } + +weak_alias(strtod, __strtod_internal); diff --git a/src/stdlib/strtol.c b/src/stdlib/strtol.c index 4a949cb..490cf21 100644 --- a/src/stdlib/strtol.c +++ b/src/stdlib/strtol.c @@ -1,6 +1,7 @@ #include "stdio_impl.h" #include "intscan.h" #include "shgetc.h" +#include "libc.h" static unsigned long long strtox(const char *s, char **p, int base, unsigned long long lim) { @@ -51,3 +52,8 @@ uintmax_t strtoumax(const char *s, char **p, int base) { return strtoull(s, p, base); } + +weak_alias(strtoll, __strtoll_internal); +weak_alias(strtol, __strtol_internal); +weak_alias(strtoul, __strtoul_internal); +weak_alias(strtoull, __strtoull_internal);