/[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 1398 - (hide annotations) (download)
Wed Oct 10 22:41:51 2007 UTC (16 years, 5 months ago) by schoenebeck
File size: 1126 byte(s)
* don't show a console on Windows by default

1 schoenebeck 1225 /*
2     * Copyright (C) 2006, 2007 Andreas Persson
3     *
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     #include "gigedit.h"
21    
22 schoenebeck 1398 #if defined(WIN32)
23     #include <windows.h>
24    
25     int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
26     LPSTR lpCmdLine, int nCmdShow)
27     {
28     GigEdit app;
29     return app.run();
30     }
31    
32     #else
33    
34 schoenebeck 1225 int main(int argc, char* argv[])
35     {
36 schoenebeck 1322 GigEdit app;
37     return (argc >= 2) ? app.run(argv[1])
38     : app.run();
39 schoenebeck 1225 }
40 schoenebeck 1398
41     #endif

  ViewVC Help
Powered by ViewVC