Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/drtimcooper/XmlRpc4Win.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2016-05-20 21:21:30 +0300
committerKacper Michajłow <kasper93@gmail.com>2016-05-21 13:30:39 +0300
commite02708ec1f48bf012535f471b6e1b2c34e53bb25 (patch)
tree5555901859bc5ca66bff420cbc275be9f7a40bf3
parent9434b748569303bfc67c872f1ed98d82e7f7e8f6 (diff)
Include unit test function conditionally.
-rw-r--r--TimXmlRpc.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/TimXmlRpc.cpp b/TimXmlRpc.cpp
index b9596a9..09866b8 100644
--- a/TimXmlRpc.cpp
+++ b/TimXmlRpc.cpp
@@ -21,7 +21,6 @@ work with the token: "/*ChrisMorley/". Thanks, Chris!
#include <windows.h>
#include <wininet.h>
-#include <fstream>
#include <iterator>
#include "TimXmlRpc.h"
@@ -1670,6 +1669,10 @@ XmlRpcImplementation::~XmlRpcImplementation()
//---------------------------- Unit testing: ----------------------
+#ifdef XML_RPC_UNIT_TEST
+
+#include <fstream>
+
static void RoundTrip(XmlRpcValue &a)
{
std::ostringstream ostr;
@@ -1746,3 +1749,4 @@ void XmlRpcUnitTest()
assert(a == b);
}
+#endif