Wrap private module fragment content within conditional extern "C++", to match declarations. (#4083)

This commit is contained in:
Cameron Angus 2024-07-24 14:25:23 +01:00 committed by GitHub
parent 0b0b09f401
commit 52b32081f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,9 +127,17 @@ extern "C++" {
module :private; module :private;
#endif #endif
#ifdef FMT_ATTACH_TO_GLOBAL_MODULE
extern "C++" {
#endif
#if FMT_HAS_INCLUDE("format.cc") #if FMT_HAS_INCLUDE("format.cc")
# include "format.cc" # include "format.cc"
#endif #endif
#if FMT_OS && FMT_HAS_INCLUDE("os.cc") #if FMT_OS && FMT_HAS_INCLUDE("os.cc")
# include "os.cc" # include "os.cc"
#endif #endif
#ifdef FMT_ATTACH_TO_GLOBAL_MODULE
}
#endif