From 3edd2a69f27242b50b7afb46dd9220da46820178 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Sat, 1 Sep 2007 17:48:43 +0000 Subject: upgrade to PCRE 7.3 --- ext/pcre/pcrelib/pcre_chartables.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ext/pcre/pcrelib/pcre_chartables.c') diff --git a/ext/pcre/pcrelib/pcre_chartables.c b/ext/pcre/pcrelib/pcre_chartables.c index 6494d8e98c..3d6a4fff9c 100644 --- a/ext/pcre/pcrelib/pcre_chartables.c +++ b/ext/pcre/pcrelib/pcre_chartables.c @@ -14,12 +14,16 @@ example ISO-8859-1. When dftables is run, it creates these tables in the current locale. If PCRE is configured with --enable-rebuild-chartables, this happens automatically. -The following #include is present because without it gcc 4.x may remove the +The following #includes are present because without the gcc 4.x may remove the array definition from the final binary if PCRE is built into a static library and dead code stripping is activated. This leads to link errors. Pulling in the header ensures that the array gets flagged as "someone outside this compilation unit might reference this" and so it will always be supplied to the linker. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "pcre_internal.h" const unsigned char _pcre_default_tables[] = { -- cgit v1.2.1