diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 22d82f94..57eb67bb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -40,6 +40,10 @@ #include <cerrno> #include <sys/stat.h> #endif +#ifdef __MINGW32__ +#include <windows.h> +#define usleep(usec) (Sleep ((usec) / 1000), 0) +#endif #if defined __APPLE__ #include <CoreFoundation/CFBundle.h> #endif |