summaryrefslogtreecommitdiff
path: root/contrib/header-only.hpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-02-02 20:58:38 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-02-02 20:58:38 +0000
commit333ad80a15f9829b388a98f222198ce2dab7892c (patch)
tree9462bb43e05c0a676de7a776c2d8f1353d6f6533 /contrib/header-only.hpp
parent88865fc91157cd2bd915c8b323ddf6441c414212 (diff)
contrib: Added header-only version example
git-svn-id: http://pugixml.googlecode.com/svn/trunk@245 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'contrib/header-only.hpp')
-rw-r--r--contrib/header-only.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/contrib/header-only.hpp b/contrib/header-only.hpp
new file mode 100644
index 0000000..1af8d4c
--- /dev/null
+++ b/contrib/header-only.hpp
@@ -0,0 +1,19 @@
+/*
+ * Header-only variant of pugixml.
+ * This file is provided to the public domain.
+ * Written by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
+ */
+
+#ifndef HEADER_PUGIXML_HEADER_ONLY_HPP
+#define HEADER_PUGIXML_HEADER_ONLY_HPP
+
+/*
+ * This file provides a header-only variant of pugixml.
+ * This is generally not recommended because of resulting code bloat/increased link time/conflicts with local symbols,
+ * so use it with caution.
+ */
+
+#include "pugixml.cpp"
+#include "pugixpath.cpp"
+
+#endif