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:
Manolo Gouy 2016-08-31 17:01:27 +00:00
parent e5486b24d1
commit 89954986bb

View File

@ -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];