Fix unicode filename compare when wchar_t is not 16bit

Do not use wcscmp() which takes wchar_t arguments.
wchar_t bit width is system dependent. It is often 32bits.
Grafx2 supports 16bits wide characters

fixes b49fa1dfcc
This commit is contained in:
Thomas Bernard
2019-04-26 23:56:47 +02:00
parent e76adfe9d9
commit 653593ba66
3 changed files with 16 additions and 1 deletions

View File

@@ -46,6 +46,9 @@ void Unicode_strlcpy(word * dst, const word * src, size_t len);
/// Append unicode string to another
void Unicode_strlcat(word * dst, const word * src, size_t len);
/// Compare two unicode strings
int Unicode_strcmp(const word * s1, const word * s2);
/// Compare an unicode string with a regular Latin1 string
int Unicode_char_strcmp(const word * s1, const char * s2);