[4675] Compile fix for Apple, by C.W.
Revision: 4675
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4675 Author: ths Date: 2008-06-05 23:06:46 +0000 (Thu, 05 Jun 2008)
Log Message:
-----------
Compile fix for Apple, by C.W. Betts.
Modified Paths:
--------------
trunk/dyngen-exec.h
Modified: trunk/dyngen-exec.h
===================================================================
dyngen-exec.h +3 -3
@@ -36,9 +36,9 @@typedef unsigned short uint16_t ;typedef unsigned int uint32_t ;// Linux/Sparc64 defines uint64_t -#if !(defined (__sparc_v9__) && defined(__linux__)) +#if !(defined (__sparc_v9__) && defined(__linux__)) && !(defined(__APPLE__) && defined(__x86_64__))/* XXX may be done for all 64 bits targets ? */ -#if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__) +#if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__)typedef unsigned long uint64_t ;#else typedef unsigned long long uint64_t ;
@@ -54,7 +54,7 @@typedef signed short int16_t ;typedef signed int int32_t ;// Linux/Sparc64 defines int64_t -#if !(defined (__sparc_v9__) && defined(__linux__)) +#if !(defined (__sparc_v9__) && defined(__linux__)) && !(defined(__APPLE__) && defined(__x86_64__))#if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__)typedef signed long int64_t ;#else
My patch was based on a patch done by Alexander Graf. I was lazy and didn't credit him directly. Also, due to my Mail client not working with Hotmail right now, I have to use the web interface, which is a bit too slow for my tastes.
----------------------------------------
Quoted 39 lines
To: [email protected]
From: [email protected]
Date: Thu, 5 Jun 2008 23:06:46 +0000
Subject: [Qemu-devel] [4675] Compile fix for Apple, by C.W.Revision: 4675
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4675 Author: ths Date: 2008-06-05 23:06:46 +0000 (Thu, 05 Jun 2008)Log Message:
-----------
Compile fix for Apple, by C.W. Betts.Modified Paths:
--------------
trunk/dyngen-exec.hModified:
trunk/dyngen-exec.h
===================================================================dyngen-exec.h +2
-2@@ -36,9 +36,9 @@typedef unsigned short uint16_t ;typedef unsigned int uint32_t ;// Linux/Sparc64 defines uint64_t -#if !(defined (__sparc_v9__) && defined(__linux__)) +#if !(defined (__sparc_v9__) && defined(__linux__)) && !(defined(__APPLE__) && defined(__x86_64__))/* XXX may be done for all 64 bits targets ? */ -#if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__) +#if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__)typedef unsigned long uint64_t ;#else typedef unsigned long long uint64_t ;
dyngen-exec.h line 60
Quoted 8 lines
dyngen-exec.h +1
-1@@ -54,7 +54,7 @@typedef signed short int16_t ;typedef signed int int32_t ;// Linux/Sparc64 defines int64_t -#if !(defined (__sparc_v9__) && defined(__linux__)) +#if !(defined (__sparc_v9__) && defined(__linux__)) && !(defined(__APPLE__) && defined(__x86_64__))#if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__)typedef signed long int64_t ;#else
_________________________________________________________________
Enjoy 5 GB of free, password-protected online storage.
http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_062008