From: H.G.Muller Date: Tue, 8 Nov 2016 21:27:45 +0000 (+0100) Subject: Define strcasestr for Windows X-Git-Tag: v2.3~6 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=c1946454644d9300609bb62499fecd8a7b0131e2;p=uci2wb.git Define strcasestr for Windows The MinGW compiler apparently does not have this function. --- diff --git a/UCI2WB.c b/UCI2WB.c index 2370615..9e34c7c 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -51,6 +51,8 @@ FILE *toE, *fromE, *fromF; int pid; #ifdef WIN32 +char *strcasestr (char *p, char *q) { char *r = p; while(*r) *r = tolower(*r), r++; return strstr(p, q); } + WinPipe(HANDLE *hRd, HANDLE *hWr) { SECURITY_ATTRIBUTES saAttr;