diff mbox

[v3,2/3] Cocoa: ppc64 host support

Message ID 1260112882-1799-2-git-send-email-andreas.faerber@web.de
State New
Headers show

Commit Message

Andreas Färber Dec. 6, 2009, 3:21 p.m. UTC
Fix integer usage in the Cocoa backend: NSInteger is long on LP64.


This makes the graphical display show up on a ppc64 host.

- Confine NSInteger to Mac OS X v10.5 and later

Signed-off-by: Andreas Faerber <andreas.faerber@web.de>
Cc: Alexander Graf <alex@csgraf.de>
Cc: Mike Kronenberg <mike.kronenberg@kronenberg.org>
Cc: John Arbuckle <programmingkidx@gmail.com>
 cocoa.m |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
diff mbox


diff --git a/cocoa.m b/cocoa.m
index 55ff2b4..989efd5 100644
--- a/cocoa.m
+++ b/cocoa.m
@@ -28,6 +28,10 @@ 
 #include "console.h"
 #include "sysemu.h"
+#ifndef MAC_OS_X_VERSION_10_5
+#define MAC_OS_X_VERSION_10_5 1050
 //#define DEBUG
@@ -337,7 +341,11 @@  int cocoa_keycode_to_qemu(int keycode)
         } else {
             // selective drawing code (draws only dirty rectangles) (OS X >= 10.4)
             const NSRect *rectList;
+            NSInteger rectCount;
             int rectCount;
             int i;
             CGImageRef clipImageRef;
             CGRect clipRect;