diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-05-19 13:28:11 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-03-02 14:24:49 +0000 |
| commit | 9aa2ca76fa5b5b6454e93f0d596d684cbe969825 (patch) | |
| tree | 1187930170de8e5112c7cb0a66a31603a8be32bc /dist/win/deps/wlua.c | |
| parent | update featured video (diff) | |
| download | alive-9aa2ca76fa5b5b6454e93f0d596d684cbe969825.tar.gz alive-9aa2ca76fa5b5b6454e93f0d596d684cbe969825.zip | |
once again, revamp windows distribution
Diffstat (limited to 'dist/win/deps/wlua.c')
| -rw-r--r-- | dist/win/deps/wlua.c | 16 |
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; +} |
