summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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