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:
Arvid Norlander 2024-06-19 18:24:28 +02:00 committed by GitHub
parent 7c07702b97
commit a356ac0aa9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>