]> git.proxmox.com Git - qemu.git/commitdiff
Cocoa: Silence warning on Big Endian host
authorAndreas Färber <andreas.faerber@web.de>
Sat, 12 Dec 2009 23:58:21 +0000 (00:58 +0100)
committermalc <av1474@comtv.ru>
Thu, 7 Jan 2010 07:57:32 +0000 (10:57 +0300)
__LITTLE_ENDIAN__ is undefined on Big Endian host.

Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Cc: John Arbuckle <programmingkidx@gmail.com>
Signed-off-by: malc <av1474@comtv.ru>
cocoa.m

diff --git a/cocoa.m b/cocoa.m
index f80a70bd23c01ddafe8eab4fe4fdc9975be72a97..f8c2e009a9a920620029f7167147da3c1de69bf9 100644 (file)
--- 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