X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fcocoa%2Fcocoawindow.m;h=745488bfd3dfc89863d2bf895ee4648cfd3c52fe;hb=6ede8137c8247f1f7d82ed7dcaad50d3f4baae0c;hp=cbf67222d7b91a60371a9180686220e52a997a2b;hpb=b1dbcb05d3ec43654d78e2662ae22162561c8270;p=libs%2Fgui.git diff --git a/source/graphics/cocoa/cocoawindow.m b/source/graphics/cocoa/cocoawindow.m index cbf6722..745488b 100644 --- a/source/graphics/cocoa/cocoawindow.m +++ b/source/graphics/cocoa/cocoawindow.m @@ -1,9 +1,16 @@ +#import #import #import #include "cocoadisplay.h" #include "cocoawindow.h" -@interface WindowDelegate: NSObject +#if __MAC_OS_X_VERSION_MAX_ALLOWED < 1060 +@protocol NSWindowDelegate @end +#endif + +@interface WindowDelegate: NSObject { + int dummy_member; +} - (BOOL)windowShouldClose:(id)sender; @@ -18,7 +25,6 @@ struct _CocoaWindow }; CFMutableDictionaryRef windows = NULL; -CFMutableArrayRef event_queue = NULL; CocoaWindow *create_window(CocoaDisplay *display, unsigned width, unsigned height, bool fullscreen, bool resizable) {