#include #include #include #include extern int __argc; extern char **__argv; extern void expand_command_line(int * argcp, char *** argvp); extern void caml_main (char **); int WINAPI WinMain(HINSTANCE h, HINSTANCE HPrevInstance, LPSTR lpCmdLine, int nCmdShow) { expand_command_line(&__argc, &__argv); caml_main(__argv); sys_exit(Val_int(0)); return 0; }