mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 12:12:25 +01:00
- fixed function call on windows
This commit is contained in:
parent
80c54b7a21
commit
b721ce0722
@ -411,7 +411,7 @@ bool hasCommandArgument(int argc, char** argv,string argName, int *foundIndex=NU
|
||||
}
|
||||
int compareLen = strlen(argName.c_str());
|
||||
for(int idx = 1; idx < argc; idx++) {
|
||||
if(strncasecmp(argName.c_str(),argv[idx],compareLen) == 0) {
|
||||
if(strnicmp(argName.c_str(),argv[idx],compareLen) == 0) {
|
||||
result = true;
|
||||
if(foundIndex != NULL) {
|
||||
*foundIndex = idx;
|
||||
|
Loading…
x
Reference in New Issue
Block a user