~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/winmain.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifdef HAVE_CONFIG_H
 
2
# include "config.h"
 
3
#endif
 
4
 
 
5
#include <stdlib.h>
 
6
#include <glib.h>
 
7
 
 
8
#ifdef G_OS_WIN32
 
9
 
 
10
#undef DATADIR
 
11
#include <windows.h>
 
12
 
 
13
extern int main (int argc, char **argv);
 
14
 
 
15
/* In case we build this as a windowed application */
 
16
 
 
17
#ifdef __GNUC__
 
18
#  ifndef _stdcall
 
19
#    define _stdcall  __attribute__((stdcall))
 
20
#  endif
 
21
#endif
 
22
 
 
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
}
 
33
 
 
34
#endif