File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -488,12 +488,12 @@ typedef enum { false = 0, true = 1 } bool;
488
488
489
489
#include < process.h>
490
490
#include < winerror.h>
491
+ #include < winsock2.h> // fix missing macros and types
491
492
492
493
// For mg_random()
493
494
#if defined(_MSC_VER) && _MSC_VER < 1700
494
495
#ifndef _WIN32_WINNT
495
496
#define _WIN32_WINNT 0x400 // Let vc98 pick up wincrypt.h
496
- #include < winsock2.h> // and fix missing macros
497
497
#endif
498
498
#include < wincrypt.h>
499
499
#pragma comment(lib, "advapi32.lib")
@@ -526,7 +526,6 @@ typedef unsigned long nfds_t;
526
526
#endif
527
527
528
528
#if MG_ENABLE_WINSOCK
529
- #include < winsock2.h>
530
529
531
530
#define MG_INVALID_SOCKET INVALID_SOCKET
532
531
#define MG_SOCKET_TYPE SOCKET
Original file line number Diff line number Diff line change @@ -66,12 +66,12 @@ typedef enum { false = 0, true = 1 } bool;
66
66
67
67
#include < process.h>
68
68
#include < winerror.h>
69
+ #include < winsock2.h> // fix missing macros and types
69
70
70
71
// For mg_random()
71
72
#if defined(_MSC_VER) && _MSC_VER < 1700
72
73
#ifndef _WIN32_WINNT
73
74
#define _WIN32_WINNT 0x400 // Let vc98 pick up wincrypt.h
74
- #include < winsock2.h> // and fix missing macros
75
75
#endif
76
76
#include < wincrypt.h>
77
77
#pragma comment(lib, "advapi32.lib")
@@ -104,7 +104,6 @@ typedef unsigned long nfds_t;
104
104
#endif
105
105
106
106
#if MG_ENABLE_WINSOCK
107
- #include < winsock2.h>
108
107
109
108
#define MG_INVALID_SOCKET INVALID_SOCKET
110
109
#define MG_SOCKET_TYPE SOCKET
You can’t perform that action at this time.
0 commit comments