Skip to content

Commit

Permalink
Wrap private module fragment content within conditional extern "C++",…
Browse files Browse the repository at this point in the history
… to match declarations. (#4083)
  • Loading branch information
kamrann authored Jul 24, 2024
1 parent 0b0b09f commit 52b3208
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/fmt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 52b3208

Please sign in to comment.