diff options
Diffstat (limited to 'Build/source/libs/teckit/TECkit-2.5.3')
4 files changed, 6 insertions, 18 deletions
diff --git a/Build/source/libs/teckit/TECkit-2.5.3/source/Engine.cpp b/Build/source/libs/teckit/TECkit-2.5.3/source/Engine.cpp index 3a273d60d80..9dbf7c7399f 100644 --- a/Build/source/libs/teckit/TECkit-2.5.3/source/Engine.cpp +++ b/Build/source/libs/teckit/TECkit-2.5.3/source/Engine.cpp @@ -51,12 +51,6 @@ Description: # define NOSERVICE # define NOMCX # include <windows.h> - - BOOL WINAPI - DllMain(HINSTANCE /*hInst*/, DWORD /*wDataSeg*/, LPVOID /*lpReserved*/) - { - return true; - } #endif #include "Engine.h" @@ -102,8 +96,6 @@ READ(const UInt32 p) #endif } -#pragma mark --- class Stage --- - Stage::Stage() : oBuffer(0) , oBufSize(0) @@ -125,8 +117,6 @@ Stage::lookaheadCount() const return 0; } -#pragma mark --- class Normalizer --- - #include "NormalizationData.c" Normalizer::Normalizer(bool compose) @@ -396,8 +386,6 @@ Normalizer::getChar() return c; } -#pragma mark --- class Pass --- - Pass::Pass(const TableHeader* inTable, Converter* cnv) : converter(cnv) , tableHeader(inTable) @@ -1282,8 +1270,6 @@ if (traceLevel > 0) return 0; } -#pragma mark --- class Converter --- - Converter::Converter(const Byte* inTable, UInt32 inTableSize, bool inForward, UInt16 inForm, UInt16 outForm) : table(0) @@ -1935,8 +1921,6 @@ Converter::Validate(const Converter* cnv) return true; } -#pragma mark --- Public "C" API functions --- - TECkit_Status WINAPI TECkit_CreateConverter( diff --git a/Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Compiler.h b/Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Compiler.h index 584e950d556..9b59eb413df 100644 --- a/Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Compiler.h +++ b/Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Compiler.h @@ -30,6 +30,9 @@ extern "C" { #ifdef _WIN32 /* MS compiler has predefined _WIN32, so assume Windows target */ #include <windows.h> // apparently just using windef.h fails on VC++6 +#undef WINAPI +#define WINAPI +#define EXPORTED #else /* not the MS compiler, so try Metrowerks' platform macros */ #ifndef __APPLE__ diff --git a/Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Engine.h b/Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Engine.h index 87a3790105f..0c8cfb67dd7 100644 --- a/Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Engine.h +++ b/Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Engine.h @@ -80,6 +80,9 @@ extern "C" { #ifdef _WIN32 /* MS compiler has predefined _WIN32, so assume Windows target */ #include <windows.h> +#undef WINAPI +#define WINAPI +#define EXPORTED #else /* not the MS compiler, so try Metrowerks' platform macros */ #ifndef __APPLE__ diff --git a/Build/source/libs/teckit/TECkit-2.5.3/source/Sample-tools/TECkit_Compile.cpp b/Build/source/libs/teckit/TECkit-2.5.3/source/Sample-tools/TECkit_Compile.cpp index e6e7af10e29..5a9467f2c8f 100644 --- a/Build/source/libs/teckit/TECkit-2.5.3/source/Sample-tools/TECkit_Compile.cpp +++ b/Build/source/libs/teckit/TECkit-2.5.3/source/Sample-tools/TECkit_Compile.cpp @@ -32,8 +32,6 @@ void 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); |