mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-28 23:03:01 +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
77f5e908c0
commit
50b1c1353d
1 changed files with 6 additions and 1 deletions
|
@ -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) );
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue