summaryrefslogtreecommitdiff
path: root/src/lua-interface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua-interface.cpp')
-rw-r--r--src/lua-interface.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lua-interface.cpp b/src/lua-interface.cpp
index 79307a6..0765f4c 100644
--- a/src/lua-interface.cpp
+++ b/src/lua-interface.cpp
@@ -74,11 +74,12 @@ extern void luaosmesa_init(Lua * L) WEAK;
}
-#ifdef _WIN32
#ifndef NO_DLL
-#define main win32_dll_main
+#define main dll_main
#endif
+#ifdef _WIN32
+
#include <windows.h>
#include <ctype.h>
#include <conio.h>