Check if .cc exists in fmt.cc (#4005)

After installation, these files no longer exist and cause errors.
This commit is contained in:
LoveSy 2024-06-10 09:01:44 +08:00 committed by GitHub
parent f332a81b72
commit 51a690ab15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,7 +122,9 @@ extern "C++" {
module :private;
#endif
#include "format.cc"
#if FMT_OS
#if FMT_HAS_INCLUDE("format.cc")
# include "format.cc"
#endif
#if FMT_OS && FMT_HAS_INCLUDE("os.cc")
# include "os.cc"
#endif