windres-wrapper: Do the format name comparisons case insensitively

This commit is contained in:
Martin Storsjö committed 2020-03-14 12:58:18 +02:00
1 parent 96b149eb72
commit 8507ee6023
2 files changed
+14 -5

No files matched your search

+9
View File
@@ -23,6 +23,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
@@ -94,6 +95,14 @@ static inline int _tspawnvp_escape(int mode, const TCHAR *filename, const TCHAR
escaped_argv[num_args] = NULL;
return _tspawnvp(mode, filename, escaped_argv);
}
#else
static inline int _tcsicmp(const TCHAR *a, const TCHAR *b) {
while (*a && tolower(*a) == tolower(*b)) {
a++;
b++;
}
return *a - *b;
}
#endif
static inline TCHAR *concat(const TCHAR *prefix, const TCHAR *suffix) {