--- a/test/main.c Sun Nov 24 12:40:28 2019 +0100 +++ b/test/main.c Mon Dec 02 13:29:36 2019 +0100 @@ -34,7 +34,17 @@ #include "base64.h" #include "crypto.h" +#ifdef _WIN32 +int wmain(int argc, wchar_t **argv) { + return test_main(1, "davtest"); +} +#else int main(int argc, char **argv) { + return test_main(argc, argv); +} +#endif + +int test_main(int argc, char **argv) { printf("libidav tests\n"); printf("-------------\n\n");