summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Färber <andreas.faerber@web.de>2009-12-13 00:58:21 +0100
committermalc <av1474@comtv.ru>2010-01-07 10:57:32 +0300
commit04afa4a88c132f7ffb0ccfaf6f233a18c4089072 (patch)
tree1ca3c7e5b861b09d29e1530b13cff05ea194d154
parent77047bb7c234793c7a8db6c3a502eb3d23cc1151 (diff)
Cocoa: Silence warning on Big Endian host
__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>
-rw-r--r--cocoa.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa.m b/cocoa.m
index f80a70bd23..f8c2e009a9 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