Fix Mac OS launching of the browser test program.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11911 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2016-08-31 16:59:22 +00:00
parent b1e25e4838
commit e5486b24d1
1 changed files with 6 additions and 9 deletions

View File

@ -149,16 +149,13 @@ int main(int argc, char **argv) {
done = browser->load(fname);
}
#elif defined(__APPLE__)
if ( i == argc )
{
char buf[2048];
strcpy(buf, argv[0]);
char *slash = strrchr(buf, '/');
if (slash) {
strcpy(slash, "/../../../browser.cxx");
}
done = browser->load(buf);
char buf[2048];
strcpy(buf, argv[0]);
char *slash = strrchr(buf, '/');
if (slash) {
strcpy(slash, "/../../../browser.cxx");
}
done = browser->load(buf);
#endif
if ( !done )
{