SilentPatch: Define a replacement for _stricmp() on non-MSVC

MinGW GCC doesn't have this MSVC-specific function
This commit is contained in:
Echo J 2024-11-04 16:39:44 +02:00
parent 77f5e908c0
commit 50b1c1353d

View file

@ -4,6 +4,11 @@
#include <algorithm>
#include <map>
#ifndef _MSC_VER
#include <cstring>
#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) );
}
}
}