summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-02-08 20:44:20 +0000
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-02-08 20:44:20 +0000
commit6056ba2f89ebab037e8bb5aa2ee695175779717c (patch)
treeb32a85156b434a8d1e9c32d2ddda5bfde559e864 /src
parent0557a06764cd0bfaad8b77fa9e1b0caf3e362dec (diff)
Simplify header-only mode usage: it's sufficient to define PUGIXML_HEADER_ONLY anywhere now, source is automatically included
git-svn-id: http://pugixml.googlecode.com/svn/trunk@964 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src')
-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
*