summaryrefslogtreecommitdiff
path: root/Build/source/libs/teckit/TLpatches/patch-05-static
blob: 1cdb0770244c95f4dee388108b497e0f2a575380 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
	For TeX Live we build a static library and not a Dll.


diff -ur teckit-2.5.9/source/Engine.cpp teckit-src/source/Engine.cpp
--- teckit-2.5.9/source/Engine.cpp	Tue Mar 19 00:23:12 2019
+++ teckit-src/source/Engine.cpp	Tue Mar 19 07:29:37 2019
@@ -51,12 +51,6 @@
 #	define NOSERVICE
 #	define NOMCX
 #	include <windows.h>
-
-	BOOL WINAPI
-	DllMain(HINSTANCE /*hInst*/, DWORD /*wDataSeg*/, LPVOID /*lpReserved*/)
-	{
-		return true;
-	}
 #endif
 
 #include "Engine.h"

diff -ur teckit-2.5.9/source/Public-headers/TECkit_Compiler.h teckit-src/source/Public-headers/TECkit_Compiler.h
--- teckit-2.5.9/source/Public-headers/TECkit_Compiler.h	Tue Mar 19 00:23:12 2019
+++ teckit-src/source/Public-headers/TECkit_Compiler.h	Tue Mar 19 07:31:10 2019
@@ -29,6 +29,9 @@
 #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 -ur teckit-2.5.9/source/Public-headers/TECkit_Engine.h teckit-src/source/Public-headers/TECkit_Engine.h
--- teckit-2.5.9/source/Public-headers/TECkit_Engine.h	Tue Mar 19 00:23:12 2019
+++ teckit-src/source/Public-headers/TECkit_Engine.h	Tue Mar 19 07:32:08 2019
@@ -79,6 +79,9 @@
 #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__