Commit 2f092d40 authored by Simon Marlow's avatar Simon Marlow
Browse files

fix for Windows

parent 7e7b6ea8
......@@ -2,14 +2,25 @@
#include "conc059_stub.h"
#include <unistd.h>
#include <stdio.h>
#if mingw32_HOST_OS
#include <windows.h>
#endif
int main(int argc, char *argv[])
{
hs_init(&argc,&argv);
f(500000);
#if mingw32_HOST_OS
Sleep(100);
#else
usleep(100000);
#endif
printf("exiting...\n");
hs_exit();
printf("exited.\n");
#if mingw32_HOST_OS
Sleep(1000);
#else
usleep(1000000);
#endif
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment