From c8c11fb35de9da9e1652ee00f9385c6a7935479c Mon Sep 17 00:00:00 2001 From: Cameron Angus Date: Tue, 23 Jul 2024 20:31:31 +0100 Subject: [PATCH] Wrap private module fragment content within conditional extern "C++", to match declarations. --- src/fmt.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/fmt.cc b/src/fmt.cc index fb514ad761fc..0a838bb1bf7b 100644 --- a/src/fmt.cc +++ b/src/fmt.cc @@ -127,9 +127,17 @@ extern "C++" { module :private; #endif +#ifdef FMT_ATTACH_TO_GLOBAL_MODULE +extern "C++" { +#endif + #if FMT_HAS_INCLUDE("format.cc") # include "format.cc" #endif #if FMT_OS && FMT_HAS_INCLUDE("os.cc") # include "os.cc" #endif + +#ifdef FMT_ATTACH_TO_GLOBAL_MODULE +} +#endif