Wii: Disable use of strtof_l (fixes #1106)
Vicki Pfau vi@endrift.com
Sat, 29 Sep 2018 11:56:11 -0700
2 files changed,
7 insertions(+),
0 deletions(-)
M
src/util/formatting.c
→
src/util/formatting.c
@@ -59,6 +59,11 @@ return res;
} float strtof_u(const char* restrict str, char** restrict end) { +#ifdef GEKKO + // strtof_l appears to have broken in devkitPPC sometime around r28 + // TODO: Investigate further + float res = strtof(str, end); +#else #if HAVE_LOCALE locale_t l = newlocale(LC_NUMERIC_MASK, "C", 0); #else@@ -67,6 +72,7 @@ #endif
float res = strtof_l(str, end, l); #if HAVE_LOCALE freelocale(l); +#endif #endif return res; }