summaryrefslogtreecommitdiff
path: root/ext/pcre/pcrelib/pcre_chartables.c
diff options
context:
space:
mode:
authorNuno Lopes <nlopess@php.net>2007-09-01 17:48:43 +0000
committerNuno Lopes <nlopess@php.net>2007-09-01 17:48:43 +0000
commit3edd2a69f27242b50b7afb46dd9220da46820178 (patch)
tree96da4f8dc21d66c25cecbea0a2d2560214bcba51 /ext/pcre/pcrelib/pcre_chartables.c
parenta3e6be974fc62869c3f4d72bcbbf73865168e613 (diff)
downloadphp-git-3edd2a69f27242b50b7afb46dd9220da46820178.tar.gz
upgrade to PCRE 7.3
Diffstat (limited to 'ext/pcre/pcrelib/pcre_chartables.c')
-rw-r--r--ext/pcre/pcrelib/pcre_chartables.c6
1 files changed, 5 insertions, 1 deletions
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 <config.h>
+#endif
+
#include "pcre_internal.h"
const unsigned char _pcre_default_tables[] = {