summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pugiconfig.hpp1
-rw-r--r--src/pugixml.hpp5
2 files changed, 5 insertions, 1 deletions
diff --git a/src/pugiconfig.hpp b/src/pugiconfig.hpp
index 2fda2d7..14bc76d 100644
--- a/src/pugiconfig.hpp
+++ b/src/pugiconfig.hpp
@@ -39,7 +39,6 @@
// Uncomment this to switch to header-only version
// #define PUGIXML_HEADER_ONLY
-// #include "pugixml.cpp"
#endif
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index ae43fd2..a988b90 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -1288,6 +1288,11 @@ namespace std
#endif
+// Make sure implementation is included in header-only mode
+#ifdef PUGIXML_HEADER_ONLY
+# include "pugixml.cpp"
+#endif
+
/**
* Copyright (c) 2006-2012 Arseny Kapoulkine
*