Fix various MSVC warnings

This commit is contained in:
Cameron Gutman
2021-04-29 17:21:12 -05:00
parent 77ed77b93b
commit da68e64d9b
8 changed files with 28 additions and 15 deletions

View File

@@ -4,6 +4,10 @@
// Prevent bogus definitions of error codes
// that are incompatible with Winsock errors.
#define _CRT_NO_POSIX_ERROR_CODES
// Ignore CRT warnings about sprintf(), memcpy(), etc.
#define _CRT_SECURE_NO_WARNINGS 1
#define _CRT_NONSTDC_NO_DEPRECATE 1
#endif
#include <stdlib.h>