mirror of https://github.com/mgba-emu/mgba.git
Wii: Disable use of strtof_l (fixes #1106)
This commit is contained in:
parent
32c5fd6d90
commit
8a006bc9c4
1
CHANGES
1
CHANGES
|
@ -112,6 +112,7 @@ Bugfixes:
|
|||
Misc:
|
||||
- mGUI: Add SGB border configuration option
|
||||
- mGUI: Add support for different settings types
|
||||
- Wii: Disable use of strtof_l (fixes mgba.io/i/1106)
|
||||
|
||||
0.7 beta 1: (2018-09-24)
|
||||
- Initial beta for 0.7
|
||||
|
|
|
@ -59,6 +59,11 @@ int ftostr_u(char* restrict str, size_t size, float f) {
|
|||
}
|
||||
|
||||
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 @@ float strtof_u(const char* restrict str, char** restrict end) {
|
|||
float res = strtof_l(str, end, l);
|
||||
#if HAVE_LOCALE
|
||||
freelocale(l);
|
||||
#endif
|
||||
#endif
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue