summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-08-09 21:15:20 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-08-09 21:15:20 +0200
commit21fdd42838d53a3fbfea3def7b49422b3e8101e0 (patch)
tree6147a9b8fe089ca3d37c43a61cdec6cf69be3110
parent356ccc4b708f67efcd5494d18589e6ff54afb2cf (diff)
macOS: add extra comment explaining need for PPC-specific source code
-rw-r--r--src/Fl_cocoa.mm9
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);