From 45feb3fe1db55cc0e3922eb7cbde33fc9262174e Mon Sep 17 00:00:00 2001 From: r4 Date: Tue, 28 Dec 2021 18:03:52 +0100 Subject: [PATCH] improve Windows detection --- util.c | 2 +- util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util.c b/util.c index cc7cd8e..e6e9a0b 100644 --- a/util.c +++ b/util.c @@ -9,7 +9,7 @@ #endif void sleep_secs(double secs) { -#ifdef WIN32 +#if defined(_WIN32) || defined(WIN32) Sleep(secs * 1000.0); #else struct timespec ts; diff --git a/util.h b/util.h index 195334b..98dda62 100644 --- a/util.h +++ b/util.h @@ -7,7 +7,7 @@ #include #include -#ifdef WIN32 +#if defined(_WIN32) || defined(WIN32) #include /* SSIZE_T */ typedef SSIZE_T ssize_t; #else