From b6a57b051e224b21cf786959ad7a31fdda9720a7 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 27 Jun 2013 15:05:07 -0700 Subject: [PATCH] Fix compiles on Mac OS X 10.6 by using a category to polyfill the declaration of convertRectToBacking:. --- src/cocoa_window.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 9fe011c7..0eaa542a 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -32,6 +32,12 @@ // Needed for _NSGetProgname #include +// Fix for 10.6. +@interface NSWindow (GLFWNSWindowPolyfill) + +-(NSRect)convertRectToBacking:(NSRect)rect; + +@end // Enter fullscreen mode //