Added WinMain for MSVC
parent
31594f9eb0
commit
239326be8b
|
@ -351,3 +351,19 @@ main (int argc, char *argv[])
|
|||
g_object_unref (app);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
#if defined(__WIN32__) && !defined(__GNUC__)
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
int __stdcall
|
||||
WinMain (HINSTANCE hInstance,
|
||||
HINSTANCE hPrevInstance,
|
||||
char *lpszCmdLine,
|
||||
int nCmdShow)
|
||||
{
|
||||
return main (__argc, __argv);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -160,3 +160,19 @@ main (int argc, char *argv[])
|
|||
g_object_unref (app);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
#if defined(__WIN32__) && !defined(__GNUC__)
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
int
|
||||
WinMain (HINSTANCE hInstance,
|
||||
HINSTANCE hPrevInstance,
|
||||
char *lpszCmdLine,
|
||||
int nCmdShow)
|
||||
{
|
||||
return main (__argc, __argv);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue