Forward declare tinyxml type used in library.h to avoid problems with dynamic linked configuration.

This commit is contained in:
PKEuS 2013-12-31 12:30:17 +01:00
parent 93b8a261a2
commit 6f76dfcb22
3 changed files with 6 additions and 2 deletions

View File

@ -25,7 +25,6 @@
#include "path.h" #include "path.h"
#include "mathlib.h" #include "mathlib.h"
#include <tinyxml2.h>
#include <map> #include <map>
#include <set> #include <set>
#include <string> #include <string>
@ -33,6 +32,9 @@
#include <algorithm> #include <algorithm>
class TokenList; class TokenList;
namespace tinyxml2 {
class XMLDocument;
}
/// @addtogroup Core /// @addtogroup Core
/// @{ /// @{

View File

@ -20,6 +20,7 @@
#include "token.h" #include "token.h"
#include "tokenlist.h" #include "tokenlist.h"
#include "testsuite.h" #include "testsuite.h"
#include <tinyxml2.h>
class TestLibrary : public TestFixture { class TestLibrary : public TestFixture {
public: public:

View File

@ -18,10 +18,11 @@
#include "preprocessor.h" #include "preprocessor.h"
#include "tokenize.h" #include "tokenize.h"
#include "symboldatabase.h"
#include "checkother.h" #include "checkother.h"
#include "testsuite.h" #include "testsuite.h"
#include <sstream> #include <sstream>
#include <symboldatabase.h> #include <tinyxml2.h>
extern std::ostringstream errout; extern std::ostringstream errout;