diff options
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/web2c/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/lib/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/lib/texmfmp.c | 6 | ||||
-rw-r--r-- | Build/source/texk/web2c/texmfmp.h | 3 |
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) |