Skip to content

Commit 194c45c

Browse files
committed
Include winsock2.h before windows.h
Fixes a compilation warning.
1 parent 3ae4c07 commit 194c45c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cutils.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@
3030
#include <inttypes.h>
3131
#include <math.h>
3232

33-
#if defined(_WIN32)
34-
#include <windows.h>
35-
#endif
36-
3733
#ifdef __cplusplus
3834
extern "C" {
3935
#endif
@@ -50,6 +46,8 @@ extern "C" {
5046
#include <malloc.h>
5147
#elif defined(__FreeBSD__)
5248
#include <malloc_np.h>
49+
#elif defined(_WIN32)
50+
#include <windows.h>
5351
#endif
5452
#if !defined(_WIN32)
5553
#include <errno.h>

0 commit comments

Comments
 (0)