From 0f17734896601ab91134812443cc57263bcdcb6a Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Wed, 18 Nov 2020 21:41:22 +0100 Subject: [PATCH] USB: Fix a few more warnings. --- pcsx2/USB/shared/inifile_usb.h | 6 ++---- pcsx2/USB/usb-pad/raw/raw-config.cpp | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pcsx2/USB/shared/inifile_usb.h b/pcsx2/USB/shared/inifile_usb.h index e80d9d2ff3..d6355bb6ca 100644 --- a/pcsx2/USB/shared/inifile_usb.h +++ b/pcsx2/USB/shared/inifile_usb.h @@ -49,13 +49,11 @@ #define __CINIFILE_H_ #ifdef _WIN32 -// VC6 "identifier was truncated to '255' characters in the debug information" -#if defined(_MSC_VER) && (_MSC_VER >= 1200) && (_MSC_VER < 1300) -#pragma warning(disable : 4786) -#endif // Prevent compile time warnings for deprecation +#if !defined(_CRT_SECURE_NO_DEPRECATE) #define _CRT_SECURE_NO_DEPRECATE #endif +#endif #include #include diff --git a/pcsx2/USB/usb-pad/raw/raw-config.cpp b/pcsx2/USB/usb-pad/raw/raw-config.cpp index 13bb69129f..595367e351 100644 --- a/pcsx2/USB/usb-pad/raw/raw-config.cpp +++ b/pcsx2/USB/usb-pad/raw/raw-config.cpp @@ -15,7 +15,9 @@ #include "PrecompiledHeader.h" +#if !defined(_WIN32_WINNT) #define _WIN32_WINNT 0x0502 +#endif #include #include #include