Lines 1-43
Link Here
|
1 |
diff -ur Foundation/Makefile Foundation/Makefile |
1 |
--- Foundation/include/Poco/RegularExpression.h.orig 2014-10-17 13:48:55.000000000 -0700 |
2 |
--- Foundation/Makefile 2014-04-02 01:13:57.000000000 -0700 |
2 |
+++ Foundation/include/Poco/RegularExpression.h 2014-10-17 13:49:30.000000000 -0700 |
3 |
+++ Foundation/Makefile 2014-04-08 07:38:07.000000000 -0700 |
3 |
@@ -34,7 +34,7 @@ |
4 |
@@ -44,6 +44,7 @@ |
4 |
extern "C" |
|
|
5 |
{ |
6 |
struct real_pcre8_or_16; /* declaration; the definition is private */ |
7 |
- typedef struct real_pcre8_or_16 pcre; |
8 |
+ typedef struct real_pcre pcre; |
9 |
struct pcre_extra; |
10 |
} |
5 |
|
11 |
|
6 |
ifdef POCO_UNBUNDLED |
|
|
7 |
SYSLIBS += -lpcre -lz |
8 |
+ objects += $(pcre_utf8_objects) # unicode.cpp uses internal pcre tables |
9 |
else |
10 |
objects += $(zlib_objects) $(pcre_objects) $(pcre_utf8_objects) |
11 |
endif |
12 |
diff -ur Foundation/src/pcre_internal.h Foundation/src/pcre_internal.h |
13 |
--- Foundation/src/pcre_internal.h 2014-04-02 01:13:57.000000000 -0700 |
14 |
+++ Foundation/src/pcre_internal.h 2014-04-08 07:38:07.000000000 -0700 |
15 |
@@ -1109,6 +1109,16 @@ |
16 |
} ucp_type_table; |
17 |
|
18 |
|
19 |
+/* renamed to avoid clashes with system pcre */ |
20 |
+#define _pcre_utf8_table1 _poco__pcre_utf8_table1 |
21 |
+#define _pcre_utf8_table1_size _poco__pcre_utf8_table1_size |
22 |
+#define _pcre_utf8_table2 _poco__pcre_utf8_table2 |
23 |
+#define _pcre_utf8_table3 _poco__pcre_utf8_table3 |
24 |
+#define _pcre_utf8_table4 _poco__pcre_utf8_table4 |
25 |
+#define _pcre_utt _poco__pcre_utt |
26 |
+#define _pcre_utt_size _poco__pcre_utt_size |
27 |
+#define _pcre_utt_names _poco__pcre_utt_names |
28 |
+#define _pcre_OP_lengths _poco__pcre_OP_lengths |
29 |
/* Internal shared data tables. These are tables that are used by more than one |
30 |
of the exported public functions. They have to be "external" in the C sense, |
31 |
but are not part of the PCRE public API. The data for these tables is in the |
32 |
@@ -1153,6 +1163,11 @@ |
33 |
pcre_int32 other_case; |
34 |
} ucd_record; |
35 |
|
36 |
+/* renamed to avoid clashes with system pcre */ |
37 |
+#define _pcre_ucd_records _poco__pcre_ucd_records |
38 |
+#define _pcre_ucd_stage1 _poco__pcre_ucd_stage1 |
39 |
+#define _pcre_ucd_stage2 _poco__pcre_ucd_stage2 |
40 |
+#define _pcre_ucp_gentype _poco__pcre_ucp_gentype |
41 |
extern const ucd_record _pcre_ucd_records[]; |
42 |
extern const uschar _pcre_ucd_stage1[]; |
43 |
extern const pcre_uint16 _pcre_ucd_stage2[]; |