summaryrefslogtreecommitdiff
path: root/dftables.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-07-31 14:39:09 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-07-31 14:39:09 +0000
commite188596ef3e912f62e3ae85c8da905a54fc41d8b (patch)
treeebd384645bf62c640a04fe0308bcbac05e8087e0 /dftables.c
parent235d0eb42c6281f0d8a1863f866c4d2722f0cdcf (diff)
downloadpcre-e188596ef3e912f62e3ae85c8da905a54fc41d8b.tar.gz
Daniel's patch for config.h and Windows DLL declarations (not fully working).
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@199 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'dftables.c')
-rw-r--r--dftables.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/dftables.c b/dftables.c
index baa56a1..39e525e 100644
--- a/dftables.c
+++ b/dftables.c
@@ -43,6 +43,10 @@ character tables for PCRE. The tables are built according to the current
locale. Now that pcre_maketables is a function visible to the outside world, we
make use of its code from here in order to be consistent. */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <ctype.h>
#include <stdio.h>
#include <string.h>
@@ -99,12 +103,15 @@ fprintf(f,
"tables are passed to PCRE by the application that calls it. The tables\n"
"are used only for characters whose code values are less than 256.\n\n");
fprintf(f,
- "The following #include is present because without it gcc 4.x may remove\n"
+ "The following #includes are present because without them gcc 4.x may remove\n"
"the array definition from the final binary if PCRE is built into a static\n"
"library and dead code stripping is activated. This leads to link errors.\n"
"Pulling in the header ensures that the array gets flagged as \"someone\n"
"outside this compilation unit might reference this\" and so it will always\n"
"be supplied to the linker. */\n\n"
+ "#ifdef HAVE_CONFIG_H"
+ "#include <config.h>"
+ "#endif"
"#include \"pcre_internal.h\"\n\n");
fprintf(f,
"const unsigned char _pcre_default_tables[] = {\n\n"