From 194c45c4b5b30f186e1878e94d65e1587dc77d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Mon, 9 Sep 2024 21:48:05 +0200 Subject: [PATCH] Include winsock2.h before windows.h Fixes a compilation warning. --- cutils.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cutils.h b/cutils.h index 125f5f6..76cb460 100644 --- a/cutils.h +++ b/cutils.h @@ -30,10 +30,6 @@ #include #include -#if defined(_WIN32) -#include -#endif - #ifdef __cplusplus extern "C" { #endif @@ -50,6 +46,8 @@ extern "C" { #include #elif defined(__FreeBSD__) #include +#elif defined(_WIN32) +#include #endif #if !defined(_WIN32) #include