From f2828ff92a75e9330327f86290772fa854cb8541 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Sun, 7 Sep 2014 23:35:22 +0200 Subject: [PATCH] Replace strcasecmp by StrCaseCmp The MicroSoft compiler does not know strcasecmp, so we better use our own function for this everywhere. --- args.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/args.h b/args.h index 19324d7..309f653 100644 --- a/args.h +++ b/args.h @@ -1120,13 +1120,13 @@ ParseArgs(GetFunc get, void *cl) if(posflag) { // positional argument: the argName was implied, and per default set as -lgf int len = strlen(argValue) - 4; // start of filename extension if(len < 0) len = 0; - if(!strcasecmp(argValue + len, ".trn")) { + if(!StrCaseCmp(argValue + len, ".trn")) { ad = &argDescriptors[2]; // correct implied type to -tf appData.tourney = TRUE; // let it parse -tourneyOptions later - } else if(!strcasecmp(argValue + len, ".fen") || !strcasecmp(argValue + len, ".epd")) { + } else if(!StrCaseCmp(argValue + len, ".fen") || !StrCaseCmp(argValue + len, ".epd")) { ad = &argDescriptors[1]; // correct implied type to -lpf appData.viewer = TRUE; - } else if(!strcasecmp(argValue + len, ".ini") || !strcasecmp(argValue + len, ".xop")) { + } else if(!StrCaseCmp(argValue + len, ".ini") || !StrCaseCmp(argValue + len, ".xop")) { ad = &argDescriptors[0]; // correct implied type to -opt } else if(GetEngineLine(argValue, 11)) { ad = &argDescriptors[3]; // correct implied type to -is -- 1.7.0.4