diff --git a/aegisub/tests/util.cpp b/aegisub/tests/util.cpp index 20a1285f8..5dc47ae95 100644 --- a/aegisub/tests/util.cpp +++ b/aegisub/tests/util.cpp @@ -18,7 +18,13 @@ /// @brief Common utilities used in tests. /// @ingroup util +#ifdef _WIN32 +#include +#define UNLINK _unlink +#else #include +#define UNLINK unlink +#endif #include 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