Skip to content

Commit

Permalink
if PUGIXML_HEADERONLY is not defined put symbols in global module fra…
Browse files Browse the repository at this point in the history
…gment
  • Loading branch information
Arthapz committed Oct 31, 2024
1 parent 03e0a05 commit 4a9169f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pugixml.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ import std.compat;
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Winclude-angled-in-module-purview"
#endif
#if !defined(PUGIXML_HEADER_ONLY)
extern "C++" {
#endif
#include <pugixml.hpp>
#if !defined(PUGIXML_HEADER_ONLY)
}
#endif
#if defined(__clang__)
# pragma clang diagnostic pop
#endif
Expand Down

0 comments on commit 4a9169f

Please sign in to comment.