From 50b1c1353dafaf3eec1fe0276135bf354340130b Mon Sep 17 00:00:00 2001 From: Echo J Date: Mon, 4 Nov 2024 16:39:44 +0200 Subject: [PATCH] SilentPatch: Define a replacement for _stricmp() on non-MSVC MinGW GCC doesn't have this MSVC-specific function --- SilentPatch/SVF.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SilentPatch/SVF.cpp b/SilentPatch/SVF.cpp index e48016c..a010e8f 100644 --- a/SilentPatch/SVF.cpp +++ b/SilentPatch/SVF.cpp @@ -4,6 +4,11 @@ #include #include +#ifndef _MSC_VER +#include +#define _stricmp strcasecmp +#endif + namespace SVF { Feature GetFeatureFromName( const char* featureName ) @@ -233,4 +238,4 @@ __declspec(dllexport) void DisableStockVehiclesForSpecialVehicleFeature( const c SVF::DisableStockVehiclesForFeature( SVF::GetFeatureFromName(featureName) ); } -} \ No newline at end of file +}