diff options
author | Josh DuBois <duboisj@CodeWeavers.com> | 2013-02-12 21:55:35 +0400 |
---|---|---|
committer | Josh DuBois <duboisj@CodeWeavers.com> | 2013-02-12 21:59:29 +0400 |
commit | 9fa235bc34834ab7e37893c0661c7ae3a119cd43 (patch) | |
tree | 072f623bf94dad63d6a1e5a2be51943df9478bd8 /libgc | |
parent | 81c5020bea6f023f5a81df998c5b36dba7544ee7 (diff) |
Include <stdint.h> to allow cross-compilation from OS X.
Cross-compiling mono on an OS X host for a Windows target using
mingw-w64 fails because of undefined __int64 types in a couple of places.
Including <stdint.h> fixes this and allows the OS X host to cross-compile
a Windows mono.
It probably sounds like an obscure use-case, but the wine-mono
project does just this, so ability to cross-compile for Windows on OS X
is crucial to being able to build wine-mono on a Mac.
Diffstat (limited to 'libgc')
-rw-r--r-- | libgc/include/gc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgc/include/gc.h b/libgc/include/gc.h index cd9efcd10af..123d6cce089 100644 --- a/libgc/include/gc.h +++ b/libgc/include/gc.h @@ -61,6 +61,7 @@ /* Win64 isn't really supported yet, but this is the first step. And */ /* it might cause error messages to show up in more plausible places. */ /* This needs basetsd.h, which is included by windows.h. */ + #include <stdint.h> typedef unsigned __int64 GC_word; typedef __int64 GC_signed_word; #endif |