diff options
Diffstat (limited to 'lib/util/nsleep.c')
-rw-r--r-- | lib/util/nsleep.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/util/nsleep.c b/lib/util/nsleep.c index d9fed571..24d48207 100644 --- a/lib/util/nsleep.c +++ b/lib/util/nsleep.c @@ -1,4 +1,6 @@ -#ifdef WIN32 +#include "pm_config.h" + +#if MSVCRT #include <windows.h> #include <process.h> #else @@ -12,7 +14,7 @@ void pm_sleep(unsigned int const milliseconds) { -#ifdef WIN32 +#if MSVCRT SleepEx(milliseconds, TRUE); #else |