summaryrefslogtreecommitdiff
path: root/dftables.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-09-03 14:01:38 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-09-03 14:01:38 +0000
commit19379abdaea366a1e688b56e463a88d7a8fdef7f (patch)
tree4e5c378d5560fbae4fd9a3116755702028ff7082 /dftables.c
parent1c950ef7b192f14536c30a876d22439b8acec151 (diff)
downloadpcre-19379abdaea366a1e688b56e463a88d7a8fdef7f.tar.gz
Small patches for the z/OS port that don't affect other OS.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1027 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'dftables.c')
-rw-r--r--dftables.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/dftables.c b/dftables.c
index dd70d45..a38b4e6 100644
--- a/dftables.c
+++ b/dftables.c
@@ -108,11 +108,24 @@ fprintf(f,
"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"
+ "be supplied to the linker. */\n\n");
+
+/* Force config.h in z/OS */
+
+#if defined NATIVE_ZOS
+fprintf(f,
+ "/* For z/OS, config.h is forced */\n"
+ "#ifndef HAVE_CONFIG_H\n"
+ "#define HAVE_CONFIG_H 1\n"
+ "#endif\n\n");
+#endif
+
+fprintf(f,
"#ifdef HAVE_CONFIG_H\n"
"#include \"config.h\"\n"
"#endif\n\n"
"#include \"pcre_internal.h\"\n\n");
+
fprintf(f,
"const pcre_uint8 PRIV(default_tables)[] = {\n\n"
"/* This table is a lower casing table. */\n\n");