Skip to content

Commit 63fd721

Browse files
glebmAJenbo
authored andcommitted
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.
1 parent 9859403 commit 63fd721

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

3rdParty/libfmt/CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,8 @@ endif()
3232
if(TARGET_PLATFORM STREQUAL "rg99")
3333
target_compile_definitions(fmt PUBLIC FMT_BUILTIN_TYPES=0)
3434
endif()
35+
36+
# https://github.com/fmtlib/fmt/issues/4189
37+
if(NINTENDO_3DS OR NINTENDO_SWITCH OR VITA)
38+
target_compile_definitions(fmt PUBLIC FMT_USE_FALLBACK_FILE=1)
39+
endif()

0 commit comments

Comments
 (0)