Changed #include to #import on the Objective-C files to settle the whole include guards thing. Now to continue fixing Mac OS X 10.6 building...
This commit is contained in:
parent
3e9e767d79
commit
c6d24f0e32
|
@ -2,11 +2,11 @@
|
|||
|
||||
#include "objc_darwin.h"
|
||||
#include "_cgo_export.h"
|
||||
#include <AppKit/NSView.h>
|
||||
#include <AppKit/NSTrackingArea.h>
|
||||
#include <Foundation/NSGeometry.h>
|
||||
#include <AppKit/NSEvent.h>
|
||||
#include <AppKit/NSBitmapImageRep.h>
|
||||
#import <AppKit/NSView.h>
|
||||
#import <AppKit/NSTrackingArea.h>
|
||||
#import <Foundation/NSGeometry.h>
|
||||
#import <AppKit/NSEvent.h>
|
||||
#import <AppKit/NSBitmapImageRep.h>
|
||||
|
||||
#define to(T, x) ((T *) (x))
|
||||
#define toNSEvent(x) to(NSEvent, (x))
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
#include "objc_darwin.h"
|
||||
#include "_cgo_export.h"
|
||||
#include <Foundation/NSObject.h>
|
||||
#include <Foundation/NSValue.h>
|
||||
#include <Foundation/NSNotification.h>
|
||||
#import <Foundation/NSObject.h>
|
||||
#import <Foundation/NSValue.h>
|
||||
#import <Foundation/NSNotification.h>
|
||||
|
||||
// see the hack below; we'll include everything first just in case some other headers get included below; if the hack ever gets resolved, we can use the ones below instead
|
||||
#include <Foundation/NSAutoreleasePool.h>
|
||||
#include <AppKit/NSEvent.h>
|
||||
#import <Foundation/NSAutoreleasePool.h>
|
||||
#import <AppKit/NSEvent.h>
|
||||
|
||||
// HACK.
|
||||
// Apple's header files are bugged: there's an enum that was introduced in 10.7 with new values added in 10.8, but instead of wrapping the whole enum in a version check, they wrap just the fields. This means that on 10.6 that enum will be empty, which is illegal.
|
||||
|
@ -19,8 +19,8 @@
|
|||
#undef MAC_OS_X_VERSION_MAX_ALLOWED
|
||||
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_7
|
||||
#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_7
|
||||
# MAC_OS_X_VERSION_10_7 MAC_OS_X_VERSION_10_6 MAC_OS_X_VERSION_10_3
|
||||
#include <AppKit/NSApplication.h>
|
||||
//# MAC_OS_X_VERSION_10_7 MAC_OS_X_VERSION_10_6 MAC_OS_X_VERSION_10_3
|
||||
#import <AppKit/NSApplication.h>
|
||||
#undef MAC_OS_X_VERSION_MIN_REQUIRED
|
||||
#undef MAC_OS_X_VERSION_MAX_ALLOWED
|
||||
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_6
|
||||
|
@ -28,9 +28,9 @@
|
|||
|
||||
// NSWindow.h is below because it includes NSApplication.h
|
||||
// we'll use the other headers's include guards so if the above is resolved and I forget to uncomment anything below it won't matter
|
||||
#include <AppKit/NSWindow.h>
|
||||
#include <Foundation/NSAutoreleasePool.h>
|
||||
#include <AppKit/NSEvent.h>
|
||||
#import <AppKit/NSWindow.h>
|
||||
#import <Foundation/NSAutoreleasePool.h>
|
||||
#import <AppKit/NSEvent.h>
|
||||
|
||||
extern NSRect dummyRect;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// 15 may 2014
|
||||
|
||||
#include "objc_darwin.h"
|
||||
#include <AppKit/NSAlert.h>
|
||||
#import <AppKit/NSAlert.h>
|
||||
|
||||
static void alert(NSString *primary, NSString *secondary, NSAlertStyle style)
|
||||
{
|
||||
|
|
|
@ -1,26 +1,26 @@
|
|||
// 13 may 2014
|
||||
|
||||
#include "objc_darwin.h"
|
||||
#include <Foundation/NSDictionary.h>
|
||||
#include <AppKit/NSArrayController.h>
|
||||
#include <AppKit/NSTableColumn.h>
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <AppKit/NSArrayController.h>
|
||||
#import <AppKit/NSTableColumn.h>
|
||||
|
||||
// see delegateuitask_darwin.m
|
||||
// in this case, NSTableView.h includes NSApplication.h
|
||||
#include <Foundation/NSIndexSet.h>
|
||||
#import <Foundation/NSIndexSet.h>
|
||||
|
||||
#undef MAC_OS_X_VERSION_MIN_REQUIRED
|
||||
#undef MAC_OS_X_VERSION_MAX_ALLOWED
|
||||
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_7
|
||||
#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_7
|
||||
#include <AppKit/NSApplication.h>
|
||||
#import <AppKit/NSApplication.h>
|
||||
#undef MAC_OS_X_VERSION_MIN_REQUIRED
|
||||
#undef MAC_OS_X_VERSION_MAX_ALLOWED
|
||||
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_6
|
||||
#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_6
|
||||
|
||||
#include <AppKit/NSTableView.h>
|
||||
#include <Foundation/NSIndexSet.h>
|
||||
#import <AppKit/NSTableView.h>
|
||||
#import <Foundation/NSIndexSet.h>
|
||||
|
||||
#define to(T, x) ((T *) (x))
|
||||
#define toNSMutableDictionary(x) to(NSMutableDictionary, (x))
|
||||
|
|
|
@ -1,25 +1,24 @@
|
|||
// 15 may 2014
|
||||
|
||||
#include "objc_darwin.h"
|
||||
#include <Foundation/NSString.h>
|
||||
#import <Foundation/NSString.h>
|
||||
|
||||
// see delegateuitask_darwin.m
|
||||
// in this case, NSScrollView.h includes NSApplication.h
|
||||
// NOTE NSView.h apparently lacks include guards; we'll need to uncomment the one below
|
||||
#include <AppKit/NSView.h>
|
||||
#import <AppKit/NSView.h>
|
||||
|
||||
#undef MAC_OS_X_VERSION_MIN_REQUIRED
|
||||
#undef MAC_OS_X_VERSION_MAX_ALLOWED
|
||||
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_7
|
||||
#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_7
|
||||
#include <AppKit/NSApplication.h>
|
||||
#import <AppKit/NSApplication.h>
|
||||
#undef MAC_OS_X_VERSION_MIN_REQUIRED
|
||||
#undef MAC_OS_X_VERSION_MAX_ALLOWED
|
||||
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_6
|
||||
#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_6
|
||||
|
||||
//#include <AppKit/NSView.h>
|
||||
#include <AppKit/NSScrollView.h>
|
||||
#import <AppKit/NSView.h>
|
||||
#import <AppKit/NSScrollView.h>
|
||||
|
||||
#define to(T, x) ((T *) (x))
|
||||
#define _toNSString(x) to(NSString, (x))
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// 15 may 2014
|
||||
|
||||
#include "objc_darwin.h"
|
||||
#include <AppKit/NSControl.h>
|
||||
#import <AppKit/NSControl.h>
|
||||
|
||||
// see delegateuitask_darwin.m
|
||||
// in this case, NSScrollView.h, NSTableView.h, AND NSProgressIndicator.h all include NSApplication.h
|
||||
|
@ -10,15 +10,15 @@
|
|||
#undef MAC_OS_X_VERSION_MAX_ALLOWED
|
||||
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_7
|
||||
#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_7
|
||||
#include <AppKit/NSApplication.h>
|
||||
#import <AppKit/NSApplication.h>
|
||||
#undef MAC_OS_X_VERSION_MIN_REQUIRED
|
||||
#undef MAC_OS_X_VERSION_MAX_ALLOWED
|
||||
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_6
|
||||
#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_6
|
||||
|
||||
#include <AppKit/NSScrollView.h>
|
||||
#include <AppKit/NSTableView.h>
|
||||
#include <AppKit/NSProgressIndicator.h>
|
||||
#import <AppKit/NSScrollView.h>
|
||||
#import <AppKit/NSTableView.h>
|
||||
#import <AppKit/NSProgressIndicator.h>
|
||||
|
||||
#define to(T, x) ((T *) (x))
|
||||
#define toNSControl(x) to(NSControl, (x))
|
||||
|
|
|
@ -1,35 +1,34 @@
|
|||
// 12 may 2014
|
||||
|
||||
#include "objc_darwin.h"
|
||||
#include <Foundation/NSGeometry.h>
|
||||
#import <Foundation/NSGeometry.h>
|
||||
|
||||
// see delegateuitask_darwin.m
|
||||
// in this case, lots of headers include NSApplication.h
|
||||
// NOTE uncomment the ones below when resolved because yay inconsistent include guard madness
|
||||
#include <AppKit/NSView.h>
|
||||
#include <AppKit/NSControl.h>
|
||||
#import <AppKit/NSView.h>
|
||||
#import <AppKit/NSControl.h>
|
||||
|
||||
#undef MAC_OS_X_VERSION_MIN_REQUIRED
|
||||
#undef MAC_OS_X_VERSION_MAX_ALLOWED
|
||||
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_7
|
||||
#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_7
|
||||
#include <AppKit/NSApplication.h>
|
||||
#import <AppKit/NSApplication.h>
|
||||
#undef MAC_OS_X_VERSION_MIN_REQUIRED
|
||||
#undef MAC_OS_X_VERSION_MAX_ALLOWED
|
||||
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_6
|
||||
#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_6
|
||||
|
||||
#include <AppKit/NSWindow.h>
|
||||
#include <AppKit/NSView.h>
|
||||
#include <AppKit/NSFont.h>
|
||||
//#include <AppKit/NSControl.h>
|
||||
#include <AppKit/NSButton.h>
|
||||
#include <AppKit/NSPopUpButton.h>
|
||||
#include <AppKit/NSComboBox.h>
|
||||
#include <AppKit/NSTextField.h>
|
||||
#include <AppKit/NSSecureTextField.h>
|
||||
#include <AppKit/NSProgressIndicator.h>
|
||||
#include <AppKit/NSScrollView.h>
|
||||
#import <AppKit/NSWindow.h>
|
||||
#import <AppKit/NSView.h>
|
||||
#import <AppKit/NSFont.h>
|
||||
#import <AppKit/NSControl.h>
|
||||
#import <AppKit/NSButton.h>
|
||||
#import <AppKit/NSPopUpButton.h>
|
||||
#import <AppKit/NSComboBox.h>
|
||||
#import <AppKit/NSTextField.h>
|
||||
#import <AppKit/NSSecureTextField.h>
|
||||
#import <AppKit/NSProgressIndicator.h>
|
||||
#import <AppKit/NSScrollView.h>
|
||||
|
||||
extern NSRect dummyRect;
|
||||
|
||||
|
|
Loading…
Reference in New Issue