diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-10-28 19:43:24 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-10-28 19:43:24 +0000 |
| commit | b20688cfbf15ee1356d6c0452d65e9f8559480d7 (patch) | |
| tree | 1acbf0ab784939c18479f5a99c29bef69f036c97 /src | |
| parent | 7a8ba8be1abb333f88decb69e53cb31a919e0e82 (diff) | |
Ignore OSX -psn_N_NNNNN option.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2697 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_arg.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/Fl_arg.cxx b/src/Fl_arg.cxx index fb7df1a83..9b78efd1b 100644 --- a/src/Fl_arg.cxx +++ b/src/Fl_arg.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_arg.cxx,v 1.5.2.8.2.12 2002/08/09 03:17:30 easysw Exp $" +// "$Id: Fl_arg.cxx,v 1.5.2.8.2.13 2002/10/28 19:43:24 easysw Exp $" // // Optional argument initialization code for the Fast Light Tool Kit (FLTK). // @@ -109,6 +109,14 @@ int Fl::arg(int argc, char **argv, int &i) { i++; return 1; } +#ifdef __APPLE__ + // The Finder application in MacOS X passes the "-psn_N_NNNNN" option + // to all apps... + else if (strncmp(s, "psn_", 4) == 0) { + i++; + return 1; + } +#endif // __APPLE__ const char *v = argv[i+1]; if (i >= argc-1 || !v) @@ -412,5 +420,5 @@ int XParseGeometry(const char* string, int* x, int* y, #endif // ifdef WIN32 // -// End of "$Id: Fl_arg.cxx,v 1.5.2.8.2.12 2002/08/09 03:17:30 easysw Exp $". +// End of "$Id: Fl_arg.cxx,v 1.5.2.8.2.13 2002/10/28 19:43:24 easysw Exp $". // |
