Skip to content

Commit

Permalink
Set FMT_USE_FALLBACK_FILE=1 on some platforms
Browse files Browse the repository at this point in the history
These platforms incorrectly declare but do not define `f(un)lockfile`.
`FMT_USE_FALLBACK_FILE=1` prevents libfmt from trying to use these
functions.
  • Loading branch information
glebm committed Oct 5, 2024
1 parent 656ef62 commit 04ecccb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 3rdParty/libfmt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 04ecccb

Please sign in to comment.