From 51a690ab153678d8b1391e2c6c4ae752f2868585 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Mon, 10 Jun 2024 09:01:44 +0800 Subject: [PATCH] Check if `.cc` exists in `fmt.cc` (#4005) After installation, these files no longer exist and cause errors. --- src/fmt.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fmt.cc b/src/fmt.cc index b7e5ccd4..364f4fa1 100644 --- a/src/fmt.cc +++ b/src/fmt.cc @@ -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