summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-02-25 03:52:10 +0000
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-02-25 03:52:10 +0000
commitcfd30d903dd77c6c46ffa2aa736968040b0eb558 (patch)
tree5535723f0115cf520cec3d0fe97f6c8c75c9bf2a /src
parenta5d621e1ed17d4c79c1da6c871f72f640a022037 (diff)
Revert automatic support for header-only mode since it creates problems with qmake.
Qmake treats all files that are #include-d as header files, even if the #include is guarded by an #ifdef. It looks like the only solution that allows for transparent header-only support based on preprocessor define involves moving the actual source into a separate header file and including this file in pugixml.cpp. Let's not do it yet. git-svn-id: https://pugixml.googlecode.com/svn/trunk@990 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src')
-rw-r--r--src/pugiconfig.hpp1
-rw-r--r--src/pugixml.hpp5
2 files changed, 1 insertions, 5 deletions
diff --git a/src/pugiconfig.hpp b/src/pugiconfig.hpp
index ffa323a..56f1d22 100644
--- a/src/pugiconfig.hpp
+++ b/src/pugiconfig.hpp
@@ -39,6 +39,7 @@
// Uncomment this to switch to header-only version
// #define PUGIXML_HEADER_ONLY
+// #include "pugixml.cpp"
// Uncomment this to enable long long support
// #define PUGIXML_HAS_LONG_LONG
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index b912127..6fb99be 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -1306,11 +1306,6 @@ namespace std
#endif
-// Make sure implementation is included in header-only mode
-#ifdef PUGIXML_HEADER_ONLY
-# include "pugixml.cpp"
-#endif
-
/**
* Copyright (c) 2006-2014 Arseny Kapoulkine
*