mirror of https://github.com/mgba-emu/mgba.git
Wii: Define _GNU_SOURCE
This commit is contained in:
parent
da80c5a971
commit
2bfc3e0ca6
2
CHANGES
2
CHANGES
|
@ -117,7 +117,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)
|
||||
- Wii: Define _GNU_SOURCE (fixes mgba.io/i/1106)
|
||||
- Wii: Expose stretch configuration in settings
|
||||
- Wii: Stretch now sets pixel-accurate mode size cap
|
||||
|
||||
|
|
|
@ -321,7 +321,7 @@ if(WII)
|
|||
add_definitions(-U__STRICT_ANSI__)
|
||||
endif()
|
||||
|
||||
if(DEFINED 3DS)
|
||||
if(3DS OR WII)
|
||||
add_definitions(-D_GNU_SOURCE)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -59,11 +59,6 @@ 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
|
||||
|
@ -72,7 +67,6 @@ 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