From 6056ba2f89ebab037e8bb5aa2ee695175779717c Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sat, 8 Feb 2014 20:44:20 +0000 Subject: 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 --- src/pugiconfig.hpp | 1 - src/pugixml.hpp | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 * -- cgit v1.2.3