Code

Avoid crash by uninitialized perspectives.
[inkscape.git] / src / winmain.cpp
1 #ifdef HAVE_CONFIG_H
2 # include "config.h"
3 #endif
5 #include <stdlib.h>
6 #include <glib.h>
8 #ifdef G_OS_WIN32
10 #undef DATADIR
11 #include <windows.h>
13 extern int main (int argc, char **argv);
15 /* In case we build this as a windowed application */
17 #ifdef __GNUC__
18 #  ifndef _stdcall
19 #    define _stdcall  __attribute__((stdcall))
20 #  endif
21 #endif
23 int _stdcall
24 WinMain (struct HINSTANCE__ *hInstance,
25          struct HINSTANCE__ *hPrevInstance,
26          char               *lpszCmdLine,
27          int                 nCmdShow)
28 {
29         int ret;
30         ret = main (__argc, __argv);
31         return ret;
32 }
34 #endif