From 4a9169f0ee8e0edebf1ce0a74784883cd9506924 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Thu, 31 Oct 2024 19:28:41 +0100 Subject: [PATCH] if PUGIXML_HEADERONLY is not defined put symbols in global module fragment --- src/pugixml.cppm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pugixml.cppm b/src/pugixml.cppm index 6cdce354..3b58b032 100644 --- a/src/pugixml.cppm +++ b/src/pugixml.cppm @@ -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 +#if !defined(PUGIXML_HEADER_ONLY) +} +#endif #if defined(__clang__) # pragma clang diagnostic pop #endif