3rdparty/wx: Fix compilation in MSVC conformance mode

This commit is contained in:
Connor McLaughlin authored and refractionpcsx2 committed 2022-04-15 08:53:02 +01:00
1 parent 2951068e0c
commit b2514d49d2
1 file changed
+2 -1
+2 -1
View File
@@ -466,7 +466,8 @@ WX_STRCMP_FUNC(wxStricmp, wxCRT_StricmpA, wxCRT_StricmpW, wxStricmp_String)
// forward-declare the template and implement it below WX_STRCMP_FUNC. OTOH,
// this fails to compile with VC6, so don't do it for VC. It also causes
// problems with GCC visibility in newer GCC versions.
#if !(defined(__VISUALC__) || (wxCHECK_GCC_VERSION(3,5) && !wxCHECK_GCC_VERSION(4,7))) || defined(__clang__)
// PCSX2: MSVC in conformance mode also requires declaration before use.
#if (wxCHECK_GCC_VERSION(3,5) && !wxCHECK_GCC_VERSION(4,7)) || defined(__clang__) || defined(__VISUALC__)
#define wxNEEDS_DECL_BEFORE_TEMPLATE
#endif