From f1d487d1c452559afe395f578c84ff29121b24d0 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 14 Dec 2012 20:56:14 +0000 Subject: [PATCH] Fix mac build error with SDK < 10.7, this version is not then defined then as pointed out by Patrick Boelens on the mailing list. --- intern/ghost/intern/GHOST_WindowCocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm index 3e967e034c4..6c5dbe83f4c 100644 --- a/intern/ghost/intern/GHOST_WindowCocoa.mm +++ b/intern/ghost/intern/GHOST_WindowCocoa.mm @@ -578,7 +578,7 @@ GHOST_WindowCocoa::GHOST_WindowCocoa( setDrawingContextType(type); updateDrawingContext(); activateDrawingContext(); -#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 // retina support started with 10.7.4 afaik +#if defined(MAC_OS_X_VERSION_10_7) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7) // retina support started with 10.7.4 afaik if (m_systemCocoa->m_nativePixel) { [m_openGLView setWantsBestResolutionOpenGLSurface:YES]; NSRect backingBounds = [m_openGLView convertRectToBacking:[m_openGLView bounds]];