aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorArvid Norlander <[email protected]>2024-06-19 18:24:28 +0200
committerGitHub <[email protected]>2024-06-19 12:24:28 -0400
commita356ac0aa90c212903f19c52d7215158ca54cfdb (patch)
tree39d5f57310f307ef85c96bfcd04d13b77a00ec0e
parent7c07702b974487ab2590d3f64ca535c14ad8b602 (diff)
downloadenet-a356ac0aa90c212903f19c52d7215158ca54cfdb.tar.gz
enet-a356ac0aa90c212903f19c52d7215158ca54cfdb.zip
Fix compiler warnings on Windows due to redefines (#258)
Co-authored-by: Arvid Norlander <[email protected]>
-rw-r--r--include/enet/win32.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/enet/win32.h b/include/enet/win32.h
index 6fbd7c0..1ba5790 100644
--- a/include/enet/win32.h
+++ b/include/enet/win32.h
@@ -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>