/[svn]/gigedit/trunk/src/gigedit/main.cpp
ViewVC logotype

Annotation of /gigedit/trunk/src/gigedit/main.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3491 - (hide annotations) (download)
Sun Mar 3 09:13:48 2019 UTC (5 years ago) by persson
File size: 1464 byte(s)
- fix compile error on windows from previous commit

1 schoenebeck 1225 /*
2 persson 3489 * Copyright (C) 2006 - 2019 Andreas Persson
3 schoenebeck 1225 *
4     * This program is free software; you can redistribute it and/or
5     * modify it under the terms of the GNU General Public License as
6     * published by the Free Software Foundation; either version 2, or (at
7     * your option) any later version.
8     *
9     * This program is distributed in the hope that it will be useful, but
10     * WITHOUT ANY WARRANTY; without even the implied warranty of
11     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12     * General Public License for more details.
13     *
14     * You should have received a copy of the GNU General Public License
15     * along with program; see the file COPYING. If not, write to the Free
16     * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17     * 02110-1301 USA.
18     */
19    
20 persson 3202 #include "global.h"
21 schoenebeck 3192 #include <gtk/gtk.h>
22 schoenebeck 1225 #include "gigedit.h"
23 schoenebeck 3364 #ifdef GTKMM_HEADER_FILE
24     # include GTKMM_HEADER_FILE(gtkmm.h)
25     #else
26     # include <gtkmm.h>
27     #endif
28 schoenebeck 1225
29 schoenebeck 1398 #if defined(WIN32)
30     #include <windows.h>
31    
32     int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
33     LPSTR lpCmdLine, int nCmdShow)
34     {
35     GigEdit app;
36 persson 1456 return app.run(__argc, __argv);
37 schoenebeck 1398 }
38    
39     #else
40    
41 schoenebeck 1225 int main(int argc, char* argv[])
42     {
43 persson 2470 #ifdef __APPLE__
44     // remove the argument added by the OS
45     if (argc > 1 && strncmp(argv[1], "-psn", 4) == 0) {
46     argc--;
47     for (int i = 1 ; i < argc ; i++) {
48     argv[i] = argv[i + 1];
49     }
50     }
51     #endif
52 schoenebeck 1322 GigEdit app;
53 persson 1456 return app.run(argc, argv);
54 schoenebeck 1225 }
55 schoenebeck 1398
56     #endif

  ViewVC Help
Powered by ViewVC