aboutsummaryrefslogtreecommitdiffstats
path: root/dist/win/deps/wlua.c
diff options
context:
space:
mode:
Diffstat (limited to 'dist/win/deps/wlua.c')
-rw-r--r--dist/win/deps/wlua.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/dist/win/deps/wlua.c b/dist/win/deps/wlua.c
new file mode 100644
index 0000000..7e3045f
--- /dev/null
+++ b/dist/win/deps/wlua.c
@@ -0,0 +1,16 @@
+#include <windows.h>
+#include <stdlib.h> /* declaration of __argc and __argv */
+
+extern int main(int, char **);
+
+int PASCAL WinMain(HINSTANCE hinst, HINSTANCE hprev, LPSTR cmdline, int ncmdshow)
+{
+ int rc;
+
+ extern int __argc; /* this seems to work for all the compilers we tested, except Watcom compilers */
+ extern char** __argv;
+
+ rc = main(__argc, __argv);
+
+ return rc;
+}