Remove another instance of the USING_XCODE preprocessor variable
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11912 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
e5486b24d1
commit
89954986bb
@ -306,13 +306,11 @@ void dobut(Fl_Widget *, long arg)
|
||||
CFStringGetCString(cc_app_path, app_path, 2048, kCFStringEncodingUTF8);
|
||||
CFRelease(cc_app_path);
|
||||
if (*app_path) {
|
||||
char *n = strrchr(app_path, '/');
|
||||
if (n) {
|
||||
#if defined USING_XCODE
|
||||
*n = 0;
|
||||
#endif
|
||||
chdir(app_path);
|
||||
if (memcmp(app_path + strlen(app_path) - 4, ".app", 4) == 0) {
|
||||
char *n = strrchr(app_path, '/');
|
||||
if (n) *n = 0;
|
||||
}
|
||||
chdir(app_path);
|
||||
}
|
||||
|
||||
char *name = new char[strlen(cmd) + 5];
|
||||
|
Loading…
Reference in New Issue
Block a user