projects
/
uci2wb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
12cceb5
)
Define strcasestr for Windows
author
H.G.Muller
<hgm@hgm-xboard.(none)>
Tue, 8 Nov 2016 21:27:45 +0000 (22:27 +0100)
committer
H.G.Muller
<hgm@hgm-xboard.(none)>
Tue, 8 Nov 2016 21:27:45 +0000 (22:27 +0100)
The MinGW compiler apparently does not have this function.
UCI2WB.c
patch
|
blob
|
history
diff --git
a/UCI2WB.c
b/UCI2WB.c
index
2370615
..
9e34c7c
100644
(file)
--- a/
UCI2WB.c
+++ b/
UCI2WB.c
@@
-51,6
+51,8
@@
FILE *toE, *fromE, *fromF;
int pid;
\r
\r
#ifdef WIN32
\r
+char *strcasestr (char *p, char *q) { char *r = p; while(*r) *r = tolower(*r), r++; return strstr(p, q); }
\r
+
\r
WinPipe(HANDLE *hRd, HANDLE *hWr)
\r
{
\r
SECURITY_ATTRIBUTES saAttr;
\r