From d8692f30b786425e58ca8805e26dacc793443882 Mon Sep 17 00:00:00 2001 From: "Philip.Hazel" Date: Wed, 13 Sep 2017 09:07:00 +0000 Subject: [PATCH] Make pcre2_internal.h idempotent. --- ChangeLog | 2 ++ src/pcre2_internal.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1384320..f09948e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,8 @@ Version 10.31 xx-xxx-201x (which got a lot more complicated by change 10.30/49) by a single subroutine that is called by both pcre2_match() and pcre2_dfa_match(). +3. Add idempotent guard to pcre2_internal.h. + Version 10.30 14-August-2017 ---------------------------- diff --git a/src/pcre2_internal.h b/src/pcre2_internal.h index 4886bf1..d1cb1c0 100644 --- a/src/pcre2_internal.h +++ b/src/pcre2_internal.h @@ -38,6 +38,9 @@ POSSIBILITY OF SUCH DAMAGE. ----------------------------------------------------------------------------- */ +#ifndef PCRE2_INTERNAL_H_IDEMPOTENT_GUARD +#define PCRE2_INTERNAL_H_IDEMPOTENT_GUARD + /* We do not support both EBCDIC and Unicode at the same time. The "configure" script prevents both being selected, but not everybody uses "configure". EBCDIC is only supported for the 8-bit library, but the check for this has to be later @@ -1973,5 +1976,6 @@ extern BOOL _pcre2_was_newline(PCRE2_SPTR, uint32_t, PCRE2_SPTR, uint32_t *, BOOL); extern BOOL _pcre2_xclass(uint32_t, PCRE2_SPTR, BOOL); #endif /* PCRE2_CODE_UNIT_WIDTH */ +#endif /* PCRE2_INTERNAL_H_IDEMPOTENT_GUARD */ /* End of pcre2_internal.h */