From 63fd721d98855a34071e3ec492418e1e92f22ac2 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sat, 5 Oct 2024 09:10:23 +0100 Subject: [PATCH] Set FMT_USE_FALLBACK_FILE=1 on some platforms These platforms incorrectly declare but do not define `f(un)lockfile`. `FMT_USE_FALLBACK_FILE=1` prevents libfmt from trying to use these functions. --- 3rdParty/libfmt/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/3rdParty/libfmt/CMakeLists.txt b/3rdParty/libfmt/CMakeLists.txt index 1eea3540f00..6269400c05a 100644 --- a/3rdParty/libfmt/CMakeLists.txt +++ b/3rdParty/libfmt/CMakeLists.txt @@ -32,3 +32,8 @@ endif() if(TARGET_PLATFORM STREQUAL "rg99") target_compile_definitions(fmt PUBLIC FMT_BUILTIN_TYPES=0) endif() + +# https://github.com/fmtlib/fmt/issues/4189 +if(NINTENDO_3DS OR NINTENDO_SWITCH OR VITA) + target_compile_definitions(fmt PUBLIC FMT_USE_FALLBACK_FILE=1) +endif()