Rev 81322 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#include <windows.h>/* The mingw-runtime startup code has _argc and _argv as visiblesymbols, as do the MS compilers.The mingw-w64-crt is different.*/extern voidGA_startgraphapp(HINSTANCE Instance, HINSTANCE PrevInstance, int CmdShow);int PASCALWinMain (HINSTANCE Instance, HINSTANCE PrevInstance, LPSTR CmdLine,int CmdShow){extern void AppMain(int argc, char **argv);#ifdef _W64__declspec(dllimport) extern int __argc;__declspec(dllimport) extern char **__argv;GA_startgraphapp(Instance, PrevInstance, CmdShow);AppMain(__argc, __argv);#else__declspec(dllimport) extern int _argc;__declspec(dllimport) extern char **_argv;GA_startgraphapp(Instance, PrevInstance, CmdShow);AppMain(_argc, _argv);#endifreturn 0;}