]> granicus.if.org Git - gc/commitdiff
Include <stdint.h> to allow cross-compilation from OS X.
authorJosh DuBois <duboisj@CodeWeavers.com>
Tue, 12 Feb 2013 17:55:35 +0000 (11:55 -0600)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 15 Sep 2013 09:00:04 +0000 (13:00 +0400)
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.

include/gc.h

index cd9efcd10af477ff7c1375a64a1d830111814323..123d6cce0893b3860763a68d3726739e6298791d 100644 (file)
@@ -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