improve Windows detection

This commit is contained in:
r4 2021-12-28 18:03:52 +01:00
parent ba8d2f0702
commit 45feb3fe1d
2 changed files with 2 additions and 2 deletions

2
util.c
View File

@ -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;

2
util.h
View File

@ -7,7 +7,7 @@
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
#if defined(_WIN32) || defined(WIN32)
#include <windows.h> /* SSIZE_T */
typedef SSIZE_T ssize_t;
#else