Skip to content

Commit

Permalink
Include winsock2.h before windows.h
Browse files Browse the repository at this point in the history
Fixes a compilation warning.
  • Loading branch information
saghul committed Sep 9, 2024
1 parent 3ae4c07 commit 194c45c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
#include <inttypes.h>
#include <math.h>

#if defined(_WIN32)
#include <windows.h>
#endif

#ifdef __cplusplus
extern "C" {
#endif
Expand All @@ -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>
Expand Down

0 comments on commit 194c45c

Please sign in to comment.