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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1322 by schoenebeck, Tue Sep 4 11:04:56 2007 UTC revision 2470 by persson, Sun Sep 15 13:31:04 2013 UTC
# Line 19  Line 19 
19    
20  #include "gigedit.h"  #include "gigedit.h"
21    
22    #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(__argc, __argv);
30    }
31    
32    #else
33    
34  int main(int argc, char* argv[])  int main(int argc, char* argv[])
35  {  {
36    #ifdef __APPLE__
37        // remove the argument added by the OS
38        if (argc > 1 && strncmp(argv[1], "-psn", 4) == 0) {
39            argc--;
40            for (int i = 1 ; i < argc ; i++) {
41                argv[i] = argv[i + 1];
42            }
43        }
44    #endif
45      GigEdit app;      GigEdit app;
46      return (argc >= 2) ? app.run(argv[1])      return app.run(argc, argv);
                        : app.run();  
47  }  }
48    
49    #endif

Legend:
Removed from v.1322  
changed lines
  Added in v.2470

  ViewVC Help
Powered by ViewVC