Skip to content

Commit

Permalink
Fix compiler warnings on Windows due to redefines (#258)
Browse files Browse the repository at this point in the history
Co-authored-by: Arvid Norlander <[email protected]>
  • Loading branch information
arvid-norlander and arvid-norlander authored Jun 19, 2024
1 parent 7c07702 commit a356ac0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/enet/win32.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@
#pragma warning (disable: 4244) // 64bit to 32bit int
#pragma warning (disable: 4018) // signed/unsigned mismatch
#pragma warning (disable: 4146) // unary minus operator applied to unsigned type
#ifndef _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_DEPRECATE
#endif
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#endif
#endif

#include <stdlib.h>
#include <winsock2.h>
Expand Down

0 comments on commit a356ac0

Please sign in to comment.