+#import <AppKit/NSApplication.h>
#import <AppKit/NSWindow.h>
#import <CoreFoundation/CFArray.h>
#include "cocoadisplay.h"
#include "cocoawindow.h"
-@interface WindowDelegate: NSObject <NSWindowDelegate>
+#if __MAC_OS_X_VERSION_MAX_ALLOWED < 1060
+@protocol NSWindowDelegate <NSObject> @end
+#endif
+
+@interface WindowDelegate: NSObject <NSWindowDelegate> {
+ int dummy_member;
+}
- (BOOL)windowShouldClose:(id)sender;
};
CFMutableDictionaryRef windows = NULL;
-CFMutableArrayRef event_queue = NULL;
CocoaWindow *create_window(CocoaDisplay *display, unsigned width, unsigned height, bool fullscreen, bool resizable)
{