mirror of
https://github.com/fltk/fltk.git
synced 2026-05-27 19:10:24 +08:00
Fix colbrowser.cxx for __APPLE__
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11739 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+3
-3
@@ -3,7 +3,7 @@
|
|||||||
//
|
//
|
||||||
// X Color Browser demo program for the Fast Light Tool Kit (FLTK).
|
// X Color Browser demo program for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 1998-2010 by Bill Spitzak and others.
|
// Copyright 1998-2016 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@@ -62,8 +62,8 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
create_form_cl();
|
create_form_cl();
|
||||||
|
|
||||||
#ifdef USING_XCODE
|
#ifdef __APPLE__
|
||||||
// Xcode apps do not set the current directory
|
// Bundled apps do not set the current directory
|
||||||
strcpy(dbname, argv[0]);
|
strcpy(dbname, argv[0]);
|
||||||
char *slash = strrchr(dbname, '/');
|
char *slash = strrchr(dbname, '/');
|
||||||
if (slash)
|
if (slash)
|
||||||
|
|||||||
Reference in New Issue
Block a user