Fixes error: two consecutive '[' tokens on g++ with objcpp files (#1246)

Applying MoAlyousef's PR. -erco
This commit is contained in:
Mohammed Alyousef 2025-04-06 01:05:39 +03:00 committed by GitHub
parent 70a104131a
commit 8b8d92a313
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -498,7 +498,7 @@ static char *prepareMacFilter(int count, const char *filter, char **patterns) {
BOOL isdir = NO;
[[NSFileManager defaultManager] fileExistsAtPath:filename isDirectory:&isdir];
if (isdir) return YES;
if ( fl_filename_match([filename fileSystemRepresentation], filter_pattern[ [nspopup indexOfSelectedItem] ]) ) return YES;
if ( fl_filename_match([filename fileSystemRepresentation], filter_pattern[([nspopup indexOfSelectedItem])]) ) return YES;
return NO;
}
- (BOOL)panel:(id)sender shouldEnableURL:(NSURL *)url

View File

@ -2758,7 +2758,7 @@ static FLTextInputContext* fltextinputcontext_instance = nil;
NSData *data = [pboard dataForType:UTF8_pasteboard_type];
DragData = (char *)malloc([data length] + 1);
[data getBytes:DragData length:[data length]];
DragData[[data length]] = 0;
DragData[([data length])] = 0;
Fl_Screen_Driver::convert_crlf(DragData, strlen(DragData));
}
else {