mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
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>
This commit is contained in:
parent
77047bb7c2
commit
04afa4a88c
1 changed files with 1 additions and 1 deletions
2
cocoa.m
2
cocoa.m
|
@ -319,7 +319,7 @@ static int cocoa_keycode_to_qemu(int keycode)
|
||||||
screen.bitsPerComponent, //bitsPerComponent
|
screen.bitsPerComponent, //bitsPerComponent
|
||||||
screen.bitsPerPixel, //bitsPerPixel
|
screen.bitsPerPixel, //bitsPerPixel
|
||||||
(screen.width * (screen.bitsPerComponent/2)), //bytesPerRow
|
(screen.width * (screen.bitsPerComponent/2)), //bytesPerRow
|
||||||
#if __LITTLE_ENDIAN__
|
#ifdef __LITTLE_ENDIAN__
|
||||||
CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB), //colorspace for OS X >= 10.4
|
CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB), //colorspace for OS X >= 10.4
|
||||||
kCGBitmapByteOrder32Little | kCGImageAlphaNoneSkipFirst,
|
kCGBitmapByteOrder32Little | kCGImageAlphaNoneSkipFirst,
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue