Added WinMain for MSVC

master
Yevgen Muntyan 2006-06-13 01:13:19 -05:00
parent 31594f9eb0
commit 239326be8b
2 changed files with 32 additions and 0 deletions

View File

@ -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

View File

@ -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