Change strcmpi to _stricmp

Unlike strcmpi, _stricmp is actually macro defined to strcasecmp for Unix systems. I don't know if Linux has strcmpi, but macOS certainly doesn't.
This commit is contained in:
Christopher Snowhill 2019-07-02 16:50:28 -07:00 committed by GitHub
parent 1d28e0f58e
commit 6b488b13e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1350,7 +1350,7 @@ static int parse_name_table(txth_header * txth, char * name_list) {
//;VGM_LOG("TXTH: compare name '%s'\n", key);
/* parse values if key (name) matches default ("") or filename with/without extension */
if (key[0]=='\0' || strcmpi(key, filename)==0 || strcmpi(key, basename)==0) {
if (key[0]=='\0' || _stricmp(key, filename)==0 || _stricmp(key, basename)==0) {
int n;
char subval[TXT_LINE_MAX];
const char *current = val;