summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2011-08-30 07:28:40 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2011-08-30 07:28:40 +0000
commit9fdefb12e17aa7ac0655dcfa6ee3748922eac7ce (patch)
tree699802f0ea61f7ddf1fa7984b8b3916ceea225b5 /Build
parent946f8b32b821068428975fb4340095705ea3e5b7 (diff)
WIN32: Allow to build TeX & Co as DLL
git-svn-id: svn://tug.org/texlive/trunk@23751 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/web2c/ChangeLog4
-rw-r--r--Build/source/texk/web2c/lib/ChangeLog4
-rw-r--r--Build/source/texk/web2c/lib/texmfmp.c6
-rw-r--r--Build/source/texk/web2c/texmfmp.h3
4 files changed, 15 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/ChangeLog b/Build/source/texk/web2c/ChangeLog
index 57ece7188ea..b1ff862ece7 100644
--- a/Build/source/texk/web2c/ChangeLog
+++ b/Build/source/texk/web2c/ChangeLog
@@ -1,3 +1,7 @@
+2011-08-29 Peter Breitenlohner <peb@mp.mpg.de>
+
+ * texmfmem.h [WIN32]: Allow to build TeX & Co as DLL.
+
2011-08-23 Peter Breitenlohner <peb@mp.mpg.de>
* triptrap-sh: Add uptrip and euptrip tests.
diff --git a/Build/source/texk/web2c/lib/ChangeLog b/Build/source/texk/web2c/lib/ChangeLog
index c013acd471c..226a99f4f28 100644
--- a/Build/source/texk/web2c/lib/ChangeLog
+++ b/Build/source/texk/web2c/lib/ChangeLog
@@ -1,3 +1,7 @@
+2011-08-29 Peter Breitenlohner <peb@mp.mpg.de>
+
+ * texmfmem.c [WIN32]: Allow to build TeX & Co as DLL.
+
2011-08-23 Peter Breitenlohner <peb@mppmu.mpg.de>
* texmfmp.c: Remove some (e-)pTeX cruft.
diff --git a/Build/source/texk/web2c/lib/texmfmp.c b/Build/source/texk/web2c/lib/texmfmp.c
index 0f19d83b9dd..f44cbc9723a 100644
--- a/Build/source/texk/web2c/lib/texmfmp.c
+++ b/Build/source/texk/web2c/lib/texmfmp.c
@@ -794,12 +794,15 @@ maininit (int ac, string *av)
#endif /* TeX */
}
-#if !defined(WIN32) || defined(__MINGW32__)
/* The entry point: set up for reading the command line, which will
happen in `topenin', then call the main body. */
int
+#if defined(WIN32) && defined(DLLPROC)
+DLLPROC (int ac, string *av);
+#else
main (int ac, string *av)
+#endif
{
#ifdef __EMX__
_wildcard (&ac, &av);
@@ -817,7 +820,6 @@ main (int ac, string *av)
return EXIT_SUCCESS;
}
-#endif /* !WIN32 || __MINGW32__ */
/* This is supposed to ``open the terminal for input'', but what we
really do is copy command line arguments into TeX's or Metafont's
diff --git a/Build/source/texk/web2c/texmfmp.h b/Build/source/texk/web2c/texmfmp.h
index 4f773f2c708..b6ee2e19cfd 100644
--- a/Build/source/texk/web2c/texmfmp.h
+++ b/Build/source/texk/web2c/texmfmp.h
@@ -129,6 +129,9 @@ extern int runsystem (const char *cmd);
/* The entry point. */
extern void maininit (int ac, string *av);
+#if defined(WIN32) && defined(DLLPROC)
+extern __declspec(dllexport) int DLLPROC (int ac, string *av);
+#endif
/* All but the Omega family use this. */
#if !defined(Aleph)