]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Fix regex bug on windows 436/head
authorThomas Lam <79589038+tl-hbk@users.noreply.github.com>
Mon, 8 Mar 2021 14:04:33 +0000 (08:04 -0600)
committerThomas Lam <79589038+tl-hbk@users.noreply.github.com>
Mon, 8 Mar 2021 14:07:33 +0000 (08:07 -0600)
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

index 7996b58b2be5927b2d42fd83cc1aba3e37777581..06a10906ba21ad79f4b8a578a94812871c270fa1 100644 (file)
@@ -12,7 +12,8 @@ extern "C" {
 #define CHARCLASS_NAME_MAX 14
 #define RE_DUP_MAX 255
 
-typedef size_t regoff_t;
+#include <BaseTsd.h>
+typedef SSIZE_T regoff_t;
 // #include <bits/alltypes.h>
 
 typedef struct re_pattern_buffer {