summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/luatex.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/luatex.c')
-rw-r--r--Build/source/texk/web2c/luatexdir/luatex.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/luatexdir/luatex.c b/Build/source/texk/web2c/luatexdir/luatex.c
index c803b5bb319..1e1e30c1e46 100644
--- a/Build/source/texk/web2c/luatexdir/luatex.c
+++ b/Build/source/texk/web2c/luatexdir/luatex.c
@@ -10,6 +10,14 @@
#defines TeX or MF, which avoids the need for a special
Makefile rule. */
+/* We |#define DLLPROC| in order to build LuaTeX and LuajitTeX as DLL
+ for W32TeX. */
+#if defined LuajitTeX
+#define DLLPROC dllluajittexmain
+#else
+#define DLLPROC dllluatexmain
+#endif
+
#include "ptexlib.h"
#include "luatex.h"
#include "lua/luatex-api.h"
@@ -466,7 +474,7 @@ static void myInvalidParameterHandler(const wchar_t * expression,
happen in `topenin', then call the main body. */
int
-#if defined(WIN32) && !defined(__MINGW32__) && defined(DLLPROC)
+#if defined(DLLPROC)
DLLPROC (int ac, string *av)
#else
main (int ac, string *av)