Fix compiles on Mac OS X 10.6 by using a category to polyfill the declaration of convertRectToBacking:.

This commit is contained in:
Patrick Walton 2013-06-27 15:05:07 -07:00
parent 2656bf8f9f
commit b6a57b051e

View File

@ -32,6 +32,12 @@
// Needed for _NSGetProgname // Needed for _NSGetProgname
#include <crt_externs.h> #include <crt_externs.h>
// Fix for 10.6.
@interface NSWindow (GLFWNSWindowPolyfill)
-(NSRect)convertRectToBacking:(NSRect)rect;
@end
// Enter fullscreen mode // Enter fullscreen mode
// //