/[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 2469 by persson, Sun Oct 21 15:32:36 2007 UTC revision 2470 by persson, Sun Sep 15 13:31:04 2013 UTC
# Line 33  int WINAPI WinMain(HINSTANCE hInstance, Line 33  int WINAPI WinMain(HINSTANCE hInstance,
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 app.run(argc, argv);      return app.run(argc, argv);
47  }  }

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

  ViewVC Help
Powered by ViewVC