commit 0482399f92e572559480f8df9a72150700934bd1
parent 5138596bca15c5673433b37a4777fe17af7b8f37
Author: finwo <finwo@pm.me>
Date: Tue, 24 Oct 2023 00:50:38 +0200
define strcasecmp alternative for windows
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/http-parser.c b/src/http-parser.c
@@ -18,6 +18,12 @@ extern "C" {
#define NULL ((void*)0)
#endif
+#if defined(_WIN32) || defined(_WIN64)
+#ifndef strcasecmp
+#define strcasecmp _stricmp
+#endif
+#endif
+
/**
* Convert hexidecimal string to int
*/