summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/mplibdir
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/mplibdir')
-rw-r--r--Build/source/texk/web2c/mplibdir/ChangeLog4
-rw-r--r--Build/source/texk/web2c/mplibdir/mpost.w9
2 files changed, 10 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/mplibdir/ChangeLog b/Build/source/texk/web2c/mplibdir/ChangeLog
index 473e5f532f5..1b48c33ce23 100644
--- a/Build/source/texk/web2c/mplibdir/ChangeLog
+++ b/Build/source/texk/web2c/mplibdir/ChangeLog
@@ -1,3 +1,7 @@
+2014-10-30 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * mpost.w [W32TeX]: Handle building of mpost.dll as for tex & Co.
+
2014-09-22 Peter Breitenlohner <peb@mppmu.mpg.de>
* mp.w: Fixed an error message typo.
diff --git a/Build/source/texk/web2c/mplibdir/mpost.w b/Build/source/texk/web2c/mplibdir/mpost.w
index c5fedb477cd..2ead2724b28 100644
--- a/Build/source/texk/web2c/mplibdir/mpost.w
+++ b/Build/source/texk/web2c/mplibdir/mpost.w
@@ -1284,12 +1284,15 @@ if (options->job_name != NULL) {
}
options->job_name = job_name;
-@ For W32\TeX we can |#define DLLPROC dllmpostmain| in order to build \MP\
-as DLL.
+@ We |#define DLLPROC dllmpostmain| in order to build \MP\ as DLL for
+W32\TeX.
@<Declarations@>=
+#define DLLPROC dllmpostmain
#if defined(WIN32) && !defined(__MINGW32__) && defined(DLLPROC)
extern __declspec(dllexport) int DLLPROC (int argc, char **argv);
+#else
+#undef DLLPROC
#endif
@ Now this is really it: \MP\ starts and ends here.
@@ -1307,7 +1310,7 @@ static char *cleaned_invocation_name(char *arg)
return ret;
}
int
-#if defined(WIN32) && !defined(__MINGW32__) && defined(DLLPROC)
+#if defined(DLLPROC)
DLLPROC (int argc, char **argv)
#else
main (int argc, char **argv)