mirror of https://github.com/odrling/Aegisub
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:
parent
9157465a18
commit
6a15775401
|
@ -18,7 +18,13 @@
|
|||
/// @brief Common utilities used in tests.
|
||||
/// @ingroup util
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <io.h>
|
||||
#define UNLINK _unlink
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#define UNLINK unlink
|
||||
#endif
|
||||
#include <fstream>
|
||||
|
||||
namespace util {
|
||||
|
@ -31,7 +37,7 @@ void copy(const std::string from, const std::string to) {
|
|||
}
|
||||
|
||||
void remove(const std::string& file) {
|
||||
unlink(file.c_str());
|
||||
UNLINK(file.c_str());
|
||||
}
|
||||
|
||||
} // namespace util
|
||||
|
|
Loading…
Reference in New Issue