diff options
Diffstat (limited to 'tests/torture.h')
-rw-r--r-- | tests/torture.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/torture.h b/tests/torture.h index dc211443..b9b87b6a 100644 --- a/tests/torture.h +++ b/tests/torture.h @@ -144,7 +144,11 @@ void torture_setup_libssh_server(void **state, const char *server_path); /* * This function must be defined in every unit test file. */ +#if ((defined _WIN32) || (defined _WIN64)) && (defined USE_ATTRIBUTE_WEAK) +__attribute__((weak)) int torture_run_tests(void); +#else int torture_run_tests(void); +#endif char *torture_make_temp_dir(const char *template); char *torture_create_temp_file(const char *template); |