mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-17 19:19:16 +01:00
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:
parent
1d28e0f58e
commit
6b488b13e5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user