summaryrefslogtreecommitdiff
path: root/src/Fl_arg.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2008-07-13 21:39:07 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2008-07-13 21:39:07 +0000
commitba2e9f33752c2396f579a9bef7d34bb0bea6b35e (patch)
tree04c00067a410ef87ac3efa30988e553dd4d83d1f /src/Fl_arg.cxx
parentd2d7daa20a3caa5f727b147d09bbe2772ac98469 (diff)
Make --post create a basic Mac OS X application bundle with a shell script
that executes the bundled program. Change the defaults for Quartz, threading, large file support, XDBE, Xft, and Xinerama to "yes". Remove the old Mac OS X resource fork file. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6142 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_arg.cxx')
-rw-r--r--src/Fl_arg.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Fl_arg.cxx b/src/Fl_arg.cxx
index c6b2e60a7..49002816d 100644
--- a/src/Fl_arg.cxx
+++ b/src/Fl_arg.cxx
@@ -82,6 +82,13 @@ int Fl::arg(int argc, char **argv, int &i) {
if (s[0] != '-' || s[1] == '-' || !s[1]) {return_i = 1; return 0;}
s++; // point after the dash
+#ifdef __APPLE__
+ if (!strncmp(s, "psn", 3)) {
+ // Skip process serial number...
+ i++;
+ }
+ else
+#endif // __APPLE__
if (fl_match(s, "iconic")) {
fl_show_iconic = 1;
i++;