1 --- a/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm
2 +++ b/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm
4 #include <IOKit/hidsystem/IOHIDUsageTables.h>
6 /* The header was moved here in Mac OS X 10.1 */
7 -#include <Kernel/IOKit/hidsystem/IOHIDUsageTables.h>
8 +#include <IOKit/hid/IOHIDUsageTables.h>
10 #include <IOKit/hid/IOHIDLib.h>
11 #include <IOKit/hid/IOHIDKeys.h>
14 [[NSAutoreleasePool alloc] init];
15 [NSApplication sharedApplication];
16 - [NSApp setDelegate:(id<NSFileManagerDelegate>)[[[AppDelegate alloc] initWithDevice:this] autorelease]];
17 + [NSApp setDelegate:(id<NSApplicationDelegate>)[[[AppDelegate alloc] initWithDevice:this] autorelease]];
18 [NSBundle loadNibNamed:@"MainMenu" owner:[NSApp delegate]];
19 [NSApp finishLaunching];
22 NSOpenGLPFASamples, (NSOpenGLPixelFormatAttribute)CreationParams.AntiAlias,
23 NSOpenGLPFAStencilSize, (NSOpenGLPixelFormatAttribute)(CreationParams.Stencilbuffer?1:0),
24 NSOpenGLPFADoubleBuffer,
25 - (NSOpenGLPixelFormatAttribute)nil
26 + (NSOpenGLPixelFormatAttribute)0
29 if (CreationParams.AntiAlias<2)
32 // Third try without Doublebuffer
33 os::Printer::log("No doublebuffering available.", ELL_WARNING);
34 - windowattribs[14]=(NSOpenGLPixelFormatAttribute)nil;
35 + windowattribs[14]=(NSOpenGLPixelFormatAttribute)0;
38 format = [[NSOpenGLPixelFormat alloc] initWithAttributes:windowattribs];