improve Windows detection

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

No files matched your search

+1 -1
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;
+1 -1
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