Wii: Define _GNU_SOURCE
Vicki Pfau vi@endrift.com
Mon, 01 Oct 2018 11:15:20 -0700
3 files changed,
2 insertions(+),
8 deletions(-)
M
CHANGES
→
CHANGES
@@ -117,7 +117,7 @@ - Qt: Fix FPS counter on Windows
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
M
CMakeLists.txt
→
CMakeLists.txt
@@ -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()
M
src/util/formatting.c
→
src/util/formatting.c
@@ -59,11 +59,6 @@ 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@@ -72,7 +67,6 @@ #endif
float res = strtof_l(str, end, l); #if HAVE_LOCALE freelocale(l); -#endif #endif return res; }