From 04afa4a88c132f7ffb0ccfaf6f233a18c4089072 Mon Sep 17 00:00:00 2001 From: Andreas Färber Date: Sun, 13 Dec 2009 00:58:21 +0100 Subject: Cocoa: Silence warning on Big Endian host MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit __LITTLE_ENDIAN__ is undefined on Big Endian host. Signed-off-by: Andreas Färber Cc: John Arbuckle Signed-off-by: malc --- cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocoa.m') diff --git a/cocoa.m b/cocoa.m index f80a70bd2..f8c2e009a 100644 --- a/cocoa.m +++ b/cocoa.m @@ -319,7 +319,7 @@ static int cocoa_keycode_to_qemu(int keycode) screen.bitsPerComponent, //bitsPerComponent screen.bitsPerPixel, //bitsPerPixel (screen.width * (screen.bitsPerComponent/2)), //bytesPerRow -#if __LITTLE_ENDIAN__ +#ifdef __LITTLE_ENDIAN__ CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB), //colorspace for OS X >= 10.4 kCGBitmapByteOrder32Little | kCGImageAlphaNoneSkipFirst, #else -- cgit v1.2.3