Add a temp (and ugly) workaround to get this building on windows. I'll make a proper solution when i next work on this file. (soonish)

Originally committed to SVN as r4339.
This commit is contained in:
Amar Takhar 2010-05-21 06:03:20 +00:00
parent 9157465a18
commit 6a15775401

View file

@ -18,7 +18,13 @@
/// @brief Common utilities used in tests. /// @brief Common utilities used in tests.
/// @ingroup util /// @ingroup util
#ifdef _WIN32
#include <io.h>
#define UNLINK _unlink
#else
#include <unistd.h> #include <unistd.h>
#define UNLINK unlink
#endif
#include <fstream> #include <fstream>
namespace util { namespace util {
@ -31,7 +37,7 @@ void copy(const std::string from, const std::string to) {
} }
void remove(const std::string& file) { void remove(const std::string& file) {
unlink(file.c_str()); UNLINK(file.c_str());
} }
} // namespace util } // namespace util