Include winsock2.h before windows.h

Fixes a compilation warning.
This commit is contained in:
Saúl Ibarra Corretgé 2024-09-09 21:48:05 +02:00
parent 3ae4c0764f
commit 194c45c4b5

View file

@ -30,10 +30,6 @@
#include <inttypes.h>
#include <math.h>
#if defined(_WIN32)
#include <windows.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
@ -50,6 +46,8 @@ extern "C" {
#include <malloc.h>
#elif defined(__FreeBSD__)
#include <malloc_np.h>
#elif defined(_WIN32)
#include <windows.h>
#endif
#if !defined(_WIN32)
#include <errno.h>