mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 23:33:02 +05:00
SilentPatch: Define a replacement for _stricmp() on non-MSVC
MinGW GCC doesn't have this MSVC-specific function
This commit is contained in:
parent
3120120ea4
commit
de2536a984
1 changed files with 6 additions and 1 deletions
|
@ -4,6 +4,11 @@
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
|
#ifndef _MSC_VER
|
||||||
|
#include <cstring>
|
||||||
|
#define _stricmp strcasecmp
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace SVF
|
namespace SVF
|
||||||
{
|
{
|
||||||
Feature GetFeatureFromName( const char* featureName )
|
Feature GetFeatureFromName( const char* featureName )
|
||||||
|
@ -233,4 +238,4 @@ __declspec(dllexport) void DisableStockVehiclesForSpecialVehicleFeature( const c
|
||||||
SVF::DisableStockVehiclesForFeature( SVF::GetFeatureFromName(featureName) );
|
SVF::DisableStockVehiclesForFeature( SVF::GetFeatureFromName(featureName) );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue