diff --git a/src/closes-exit-minus-one.c b/src/closes-exit-minus-one.c index 043d9ff975..00b4e9bb3c 100644 --- a/src/closes-exit-minus-one.c +++ b/src/closes-exit-minus-one.c @@ -1 +1,10 @@ +#if defined(_WIN32) +#include +int main() +{ + TerminateProcess(GetCurrentProcess(), 0xFFFFFFFF); + return -1; +} +#else int main() { return -1; } +#endif