all repos — mgba @ 2bfc3e0ca623e4140e0f44ea75ab04512e41681a

mGBA Game Boy Advance Emulator

Wii: Define _GNU_SOURCE
Vicki Pfau vi@endrift.com
Mon, 01 Oct 2018 11:15:20 -0700
commit

2bfc3e0ca623e4140e0f44ea75ab04512e41681a

parent

da80c5a9714a2c6d717a9dc8b11d3e37ac6fc585

3 files changed, 2 insertions(+), 8 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.txtCMakeLists.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.csrc/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; }