From 1e1f1c33bd08c84cc3c0474a0531b08687216d2c Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 7 Sep 2015 10:45:00 +0000 Subject: Mac OS: added missing cast required by some compilers. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10856 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 61698dc5b..0a8399efc 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2730,9 +2730,9 @@ NSOpenGLPixelFormat* Fl_X::mode_to_NSOpenGLPixelFormat(int m, const int *alistp) attribs[n++] = NSOpenGLPFASamples; attribs[n++] = (NSOpenGLPixelFormatAttribute)4; } #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 -#define NSOpenGLPFAOpenGLProfile 99 +#define NSOpenGLPFAOpenGLProfile (NSOpenGLPixelFormatAttribute)99 #define kCGLPFAOpenGLProfile NSOpenGLPFAOpenGLProfile -#define NSOpenGLProfileVersionLegacy 0x1000 +#define NSOpenGLProfileVersionLegacy (NSOpenGLPixelFormatAttribute)0x1000 #define kCGLOGLPVersion_Legacy NSOpenGLProfileVersionLegacy #endif if (fl_mac_os_version >= 100700) { -- cgit v1.2.3