mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
Include winsock2.h before windows.h
Fixes a compilation warning.
This commit is contained in:
parent
3ae4c0764f
commit
194c45c4b5
1 changed files with 2 additions and 4 deletions
6
cutils.h
6
cutils.h
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue