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
This commit is contained in:
Arseny Kapoulkine 2014-02-25 03:52:10 +00:00
parent a5d621e1ed
commit cfd30d903d
2 changed files with 1 additions and 5 deletions

View File

@ -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

View File

@ -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
*