diff options
| author | Manolo Gouy <Manolo> | 2015-01-14 13:29:05 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-01-14 13:29:05 +0000 |
| commit | bc8a7037ebba0fe89164aa7fb2e8099cc5507b81 (patch) | |
| tree | a0038130cc350805f7b5e74f861e1130a3447c18 /src | |
| parent | d7e4831dbe4a988541ce56159f76a0698d210572 (diff) | |
Avoid compilation warnings appearing with SDK 10.5
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10517 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 87b95ce9c..969edd5f5 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -4286,7 +4286,8 @@ void Fl_Paged_Device::print_window(Fl_Window *win, int x_offset, int y_offset) int bx, by, bt, bpp; get_window_frame_sizes(bx, by, bt); BOOL to_quartz = (this->driver()->class_name() == Fl_Quartz_Graphics_Driver::class_id); -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 +// a compilation warning appears with SDK 10.5, so we require SDK 10.6 instead if (fl_mac_os_version >= 101000) { CALayer *layer = [[[fl_xid(win) standardWindowButton:NSWindowCloseButton] superview] layer]; // 10.5 if (layer) { // if program is linked with 10.10, title bar uses a layer |
