mirror of https://github.com/mgba-emu/mgba.git
Util: Fix intermittent build failure on OS X
This commit is contained in:
parent
0694a87ec2
commit
c82ee873e1
1
CHANGES
1
CHANGES
|
@ -53,6 +53,7 @@ Misc:
|
||||||
- Debugger: CLI debugger now exits when end-of-stream is reached
|
- Debugger: CLI debugger now exits when end-of-stream is reached
|
||||||
- VFS: VFile.sync now updates modified time
|
- VFS: VFile.sync now updates modified time
|
||||||
- GBA: Add overrides for DBZ: Legacy of Goku II and Ueki no Housoku
|
- 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)
|
0.4.0: (2016-02-02)
|
||||||
Features:
|
Features:
|
||||||
|
|
|
@ -250,7 +250,7 @@ if(HAVE_LOCALTIME_R)
|
||||||
list(APPEND FUNCTION_DEFINES HAVE_LOCALTIME_R)
|
list(APPEND FUNCTION_DEFINES HAVE_LOCALTIME_R)
|
||||||
endif()
|
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)
|
list(APPEND FUNCTION_DEFINES HAVE_LOCALE)
|
||||||
if (HAVE_STRTOF_L)
|
if (HAVE_STRTOF_L)
|
||||||
list(APPEND FUNCTION_DEFINES HAVE_STRTOF_L)
|
list(APPEND FUNCTION_DEFINES HAVE_STRTOF_L)
|
||||||
|
|
|
@ -12,9 +12,7 @@
|
||||||
|
|
||||||
#if defined(__APPLE__) || defined(__FreeBSD__)
|
#if defined(__APPLE__) || defined(__FreeBSD__)
|
||||||
#include "xlocale.h"
|
#include "xlocale.h"
|
||||||
#endif
|
#elif !defined(HAVE_LOCALE)
|
||||||
|
|
||||||
#ifndef HAVE_LOCALE
|
|
||||||
typedef const char* locale_t;
|
typedef const char* locale_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue