mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 14:29:05 -07:00
Fix compiler warnings on Windows due to redefines (#258)
Co-authored-by: Arvid Norlander <arvid-norlander@users.noreply.github.com>
This commit is contained in:
parent
7c07702b97
commit
a356ac0aa9
1 changed files with 4 additions and 0 deletions
|
@ -11,10 +11,14 @@
|
||||||
#pragma warning (disable: 4244) // 64bit to 32bit int
|
#pragma warning (disable: 4244) // 64bit to 32bit int
|
||||||
#pragma warning (disable: 4018) // signed/unsigned mismatch
|
#pragma warning (disable: 4018) // signed/unsigned mismatch
|
||||||
#pragma warning (disable: 4146) // unary minus operator applied to unsigned type
|
#pragma warning (disable: 4146) // unary minus operator applied to unsigned type
|
||||||
|
#ifndef _CRT_SECURE_NO_DEPRECATE
|
||||||
#define _CRT_SECURE_NO_DEPRECATE
|
#define _CRT_SECURE_NO_DEPRECATE
|
||||||
|
#endif
|
||||||
|
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||||
#define _CRT_SECURE_NO_WARNINGS
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
|
|
Loading…
Reference in a new issue