From 87bc09222249bb7862f4bd4a10f20e8a25c10ea9 Mon Sep 17 00:00:00 2001 From: "Philip.Hazel" Date: Wed, 4 Sep 2019 07:23:01 +0000 Subject: [PATCH] Cut out maketables_free when included in freestanding program. --- src/pcre2_maketables.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pcre2_maketables.c b/src/pcre2_maketables.c index b1eb137..8c93b4b 100644 --- a/src/pcre2_maketables.c +++ b/src/pcre2_maketables.c @@ -147,6 +147,7 @@ for (i = 0; i < 256; i++) return yield; } +#ifndef DFTABLES PCRE2_EXP_DEFN void PCRE2_CALL_CONVENTION pcre2_maketables_free(pcre2_general_context *gcontext, const uint8_t *tables) { @@ -155,5 +156,6 @@ pcre2_maketables_free(pcre2_general_context *gcontext, const uint8_t *tables) else free((void *)tables); } +#endif /* End of pcre2_maketables.c */