From 4efd62c99f3a00ac01bf7ca3e7fc26adebf6b120 Mon Sep 17 00:00:00 2001 From: Thomas Lam <79589038+tl-hbk@users.noreply.github.com> Date: Mon, 8 Mar 2021 08:04:33 -0600 Subject: [PATCH] Fix regex bug on windows https://github.com/ifduyue/musl/blob/a5aff1972c9e3981566414b09a28e331ccd2be5d/include/alltypes.h.in#L10 https://github.com/ifduyue/musl/blob/a5aff1972c9e3981566414b09a28e331ccd2be5d/arch/x86_64/bits/alltypes.h.in#L1 --- win32/regex.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/win32/regex.h b/win32/regex.h index 7996b58b..06a10906 100644 --- a/win32/regex.h +++ b/win32/regex.h @@ -12,7 +12,8 @@ extern "C" { #define CHARCLASS_NAME_MAX 14 #define RE_DUP_MAX 255 -typedef size_t regoff_t; +#include +typedef SSIZE_T regoff_t; // #include typedef struct re_pattern_buffer { -- 2.47.2