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:
parent
a5d621e1ed
commit
cfd30d903d
@ -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
|
||||
|
||||
@ -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
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user