Skip to content

Commit

Permalink
support "moduleonly" mode for C++20 module
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthapz committed Oct 31, 2024
1 parent d57ccaf commit 03e0a05
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pugixml.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,7 @@ import std.compat;

module :private;

#define PUGIXML_SOURCE "pugixml.cpp"
#include PUGIXML_SOURCE
#if defined(PUGIXML_HEADER_ONLY) && !defined(PUGIXML_SOURCE)
# define PUGIXML_SOURCE "pugixml.cpp"
# include PUGIXML_SOURCE
#endif

0 comments on commit 03e0a05

Please sign in to comment.