From: Thomas Lam <79589038+tl-hbk@users.noreply.github.com> Date: Mon, 8 Mar 2021 14:04:33 +0000 (-0600) Subject: Fix regex bug on windows X-Git-Tag: 0.7.18~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4efd62c99f3a00ac01bf7ca3e7fc26adebf6b120;p=thirdparty%2Flibsolv.git 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 --- 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 {