diff --git a/CHANGES b/CHANGES index a3413ef43..b52b85969 100644 --- a/CHANGES +++ b/CHANGES @@ -166,6 +166,7 @@ Bugfixes: - Qt: Fix controls not saving on non-SDL builds - GB Video: Fix LYC regression - Qt: Fix translation initialization (fixes mgba.io/i/776) + - PSP2: Use custom localtime_r since newlib version is broken (fixes mgba.io/i/560) Misc: - Qt: Add language selector - GBA Timer: Improve accuracy of timers diff --git a/CMakeLists.txt b/CMakeLists.txt index a87678e0a..e31ee40ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -275,7 +275,9 @@ endif() include(CheckFunctionExists) check_function_exists(strdup HAVE_STRDUP) check_function_exists(strndup HAVE_STRNDUP) -check_function_exists(localtime_r HAVE_LOCALTIME_R) +if(NOT DEFINED PSP2) + check_function_exists(localtime_r HAVE_LOCALTIME_R) +endif() if(NOT CMAKE_SYSTEM_NAME STREQUAL "Generic") check_function_exists(snprintf_l HAVE_SNPRINTF_L) if(CMAKE_SYSTEM_NAME STREQUAL "Linux")