From 581b18fb8b141a360757719dc04a52121e11fb92 Mon Sep 17 00:00:00 2001 From: Ryan Lopopolo Date: Mon, 12 Aug 2019 21:08:16 -0700 Subject: [PATCH] Include stdint.h intptr_t and uintptr_t are C99 types but they are optional. --- src/regexec.c | 3 ++- src/regparse.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/regexec.c b/src/regexec.c index 0753b07..f8310bf 100644 --- a/src/regexec.c +++ b/src/regexec.c @@ -27,6 +27,7 @@ * SUCH DAMAGE. */ #include "regint.h" +#include #define IS_MBC_WORD_ASCII_MODE(enc,s,end,mode) \ ((mode) == 0 ? ONIGENC_IS_MBC_WORD(enc,s,end) : ONIGENC_IS_MBC_WORD_ASCII(enc,s,end)) @@ -375,7 +376,7 @@ print_compiled_byte_code(FILE* f, regex_t* reg, int index, case OP_CCLASS_MB_NOT: { OnigCodePoint ncode; - OnigCodePoint* codes; + OnigCodePoint* codes; codes = (OnigCodePoint* )p->cclass_mb.mb; GET_CODE_POINT(ncode, codes); diff --git a/src/regparse.c b/src/regparse.c index df97be9..c859fda 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -29,6 +29,7 @@ #include "regparse.h" #include "st.h" +#include #ifdef DEBUG_NODE_FREE #include -- 2.40.0