summaryrefslogtreecommitdiff
path: root/Build/source/libs/teckit/TECkit-2.5.3-PATCHES/patch-04-pragmas
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/teckit/TECkit-2.5.3-PATCHES/patch-04-pragmas')
-rw-r--r--Build/source/libs/teckit/TECkit-2.5.3-PATCHES/patch-04-pragmas63
1 files changed, 63 insertions, 0 deletions
diff --git a/Build/source/libs/teckit/TECkit-2.5.3-PATCHES/patch-04-pragmas b/Build/source/libs/teckit/TECkit-2.5.3-PATCHES/patch-04-pragmas
new file mode 100644
index 00000000000..a4d8d10d904
--- /dev/null
+++ b/Build/source/libs/teckit/TECkit-2.5.3-PATCHES/patch-04-pragmas
@@ -0,0 +1,63 @@
+ Remove the '#pragma's, they seem to cause problems for MSVC
+ and are certainly not needed otherwise.
+
+diff -ur TECkit-2.5.3.orig/source/Engine.cpp TECkit-2.5.3/source/Engine.cpp
+--- TECkit-2.5.3.orig/source/Engine.cpp 2012-03-17 17:43:26.000000000 +0100
++++ TECkit-2.5.3/source/Engine.cpp 2012-10-13 12:30:24.000000000 +0200
+@@ -102,8 +102,6 @@
+ #endif
+ }
+
+-#pragma mark --- class Stage ---
+-
+ Stage::Stage()
+ : oBuffer(0)
+ , oBufSize(0)
+@@ -125,8 +117,6 @@
+ return 0;
+ }
+
+-#pragma mark --- class Normalizer ---
+-
+ #include "NormalizationData.c"
+
+ Normalizer::Normalizer(bool compose)
+@@ -396,8 +392,6 @@
+ return c;
+ }
+
+-#pragma mark --- class Pass ---
+-
+ Pass::Pass(const TableHeader* inTable, Converter* cnv)
+ : converter(cnv)
+ , tableHeader(inTable)
+@@ -1282,8 +1276,6 @@
+ return 0;
+ }
+
+-#pragma mark --- class Converter ---
+-
+ Converter::Converter(const Byte* inTable, UInt32 inTableSize, bool inForward,
+ UInt16 inForm, UInt16 outForm)
+ : table(0)
+@@ -1935,8 +1927,6 @@
+ return true;
+ }
+
+-#pragma mark --- Public "C" API functions ---
+-
+ TECkit_Status
+ WINAPI
+ TECkit_CreateConverter(
+diff -ur TECkit-2.5.3.orig/source/Sample-tools/TECkit_Compile.cpp TECkit-2.5.3/source/Sample-tools/TECkit_Compile.cpp
+--- TECkit-2.5.3.orig/source/Sample-tools/TECkit_Compile.cpp 2012-03-17 17:43:26.000000000 +0100
++++ TECkit-2.5.3/source/Sample-tools/TECkit_Compile.cpp 2012-10-13 12:28:29.000000000 +0200
+@@ -32,8 +32,6 @@
+ CALLBACK
+ errFunc(void* userData, const char* msg, const char* param, UInt32 line)
+ {
+-#pragma unused(userData)
+-
+ fprintf(stderr, "%s", msg);
+ if (param != 0)
+ fprintf(stderr, ": \"%s\"", param);