actually fix the windows build of tests

This commit is contained in:
Arvid Norberg
2013-06-17 05:50:53 +00:00
parent 0600639b79
commit 4d2f61a353
2 changed files with 2 additions and 6 deletions

View File

@@ -36,10 +36,6 @@ POSSIBILITY OF SUCH DAMAGE.
#include <stdio.h>
#include <stdlib.h> // for exit()
#ifdef TORRENT_WINDOWS
#include <direct.h> // for _chdir
#endif
int test_main();
extern bool tests_failure;
@@ -115,7 +111,7 @@ int main()
return 1;
}
#ifdef TORRENT_WINDOWS
_chdir(dir);
SetCurrentDirectoryA(dir);
#else
chdir(dir);
#endif