windres-wrapper: Do the format name comparisons case insensitively
This commit is contained in:
1 parent
96b149eb72
commit
8507ee6023
2 files changed
+14
-5
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user