diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-08-09 21:15:20 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-08-09 21:15:20 +0200 |
| commit | 21fdd42838d53a3fbfea3def7b49422b3e8101e0 (patch) | |
| tree | 6147a9b8fe089ca3d37c43a61cdec6cf69be3110 | |
| parent | 356ccc4b708f67efcd5494d18589e6ff54afb2cf (diff) | |
macOS: add extra comment explaining need for PPC-specific source code
| -rw-r--r-- | src/Fl_cocoa.mm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 579bbc56e..445f2cfb2 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -92,11 +92,12 @@ static BOOL through_drawRect = NO; static BOOL through_Fl_X_flush = NO; static BOOL views_use_CA = NO; // YES means views are layer-backed, as on macOS 10.14 when linked with SDK 10.14 static int im_enabled = -1; -// OS version-dependent pasteboard type names. PPC still supported on 10.6 but lacks some 10.6 features. +// OS version-dependent pasteboard type names. +// Some, but not all, versions of the 10.6 SDK for PPC lack the 3 symbols below (PR #761) #if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6) || defined(__POWERPC__) -#define NSPasteboardTypeTIFF @"public.tiff" -#define NSPasteboardTypePDF @"com.adobe.pdf" -#define NSPasteboardTypeString @"public.utf8-plain-text" +# define NSPasteboardTypeTIFF @"public.tiff" +# define NSPasteboardTypePDF @"com.adobe.pdf" +# define NSPasteboardTypeString @"public.utf8-plain-text" #endif static NSString *TIFF_pasteboard_type = (fl_mac_os_version >= 100600 ? NSPasteboardTypeTIFF : NSTIFFPboardType); static NSString *PDF_pasteboard_type = (fl_mac_os_version >= 100600 ? NSPasteboardTypePDF : NSPDFPboardType); |
