]> source.dussan.org Git - tigervnc.git/commitdiff
The legacy OS X keyboard API is only 32-bit
authorPierre Ossman <ossman@cendio.se>
Wed, 25 Feb 2015 13:43:42 +0000 (14:43 +0100)
committerPierre Ossman <ossman@cendio.se>
Wed, 25 Feb 2015 13:43:42 +0000 (14:43 +0100)
vncviewer/cocoa.mm

index e9e0968368318c6f16e77676481a08af987417b5..09921000e323bc86b0733cd2c79f51ba7192f91b 100644 (file)
@@ -203,7 +203,7 @@ static NSString *key_translate(UInt16 keyCode, UInt32 modifierFlags)
 
   layout = NULL;
 
-#if (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5)
+#if (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5) || defined(__x86_64__)
   TISInputSourceRef keyboard;
   CFDataRef uchr;