all repos — mgba @ c82ee873e1f12b83b9017caeb3c872015ec38cde

mGBA Game Boy Advance Emulator

Util: Fix intermittent build failure on OS X
Jeffrey Pfau jeffrey@endrift.com
Sun, 26 Jun 2016 20:31:12 -0700
commit

c82ee873e1f12b83b9017caeb3c872015ec38cde

parent

0694a87ec2505638e8cf649d9e3882e22ff3a139

3 files changed, 3 insertions(+), 4 deletions(-)

jump to
M CHANGESCHANGES

@@ -53,6 +53,7 @@ - ARM7: Clean up instruction decoding for future expandability

- Debugger: CLI debugger now exits when end-of-stream is reached - VFS: VFile.sync now updates modified time - GBA: Add overrides for DBZ: Legacy of Goku II and Ueki no Housoku + - Util: Fix intermittent build failure on OS X 0.4.0: (2016-02-02) Features:
M CMakeLists.txtCMakeLists.txt

@@ -250,7 +250,7 @@ if(HAVE_LOCALTIME_R)

list(APPEND FUNCTION_DEFINES HAVE_LOCALTIME_R) endif() -if(HAVE_NEWLOCALE AND HAVE_FREELOCALE AND HAVE_USELOCALE) +if(HAVE_NEWLOCALE AND HAVE_FREELOCALE AND HAVE_USELOCALE OR APPLE) list(APPEND FUNCTION_DEFINES HAVE_LOCALE) if (HAVE_STRTOF_L) list(APPEND FUNCTION_DEFINES HAVE_STRTOF_L)
M src/util/formatting.hsrc/util/formatting.h

@@ -12,9 +12,7 @@ #include "locale.h"

#if defined(__APPLE__) || defined(__FreeBSD__) #include "xlocale.h" -#endif - -#ifndef HAVE_LOCALE +#elif !defined(HAVE_LOCALE) typedef const char* locale_t; #endif