From 2e23502da7b349ae7b87462b53a703c39b7a1caf Mon Sep 17 00:00:00 2001 From: sevlat Date: Thu, 1 Jan 2015 16:20:56 +0300 Subject: [PATCH] Allow to turn on header-only mode without foreign code intervention --- src/pugixml.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pugixml.hpp b/src/pugixml.hpp index 917ef4a..af3fb0e 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -19,6 +19,10 @@ // Include user configuration file (this can define various configuration macros) #include "pugiconfig.hpp" +#ifdef PUGIXML_HEADER_ONLY +#include "pugixml.cpp" +#endif + #ifndef HEADER_PUGIXML_HPP #define HEADER_PUGIXML_HPP