X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2FRts.h;h=331840236469ea470316d2c3a9554a393185879c;hb=57fad22f920f13527a0e6f1ee26eb326580fcb1a;hp=1bfb37a1bf17e57a9e1d961f1ae1c3660672159e;hpb=064562360a310f08592d41e9fceb3404932c4a04;p=ghc-hetmet.git diff --git a/includes/Rts.h b/includes/Rts.h index 1bfb37a..3318402 100644 --- a/includes/Rts.h +++ b/includes/Rts.h @@ -143,9 +143,16 @@ void _assertFail(const char *filename, unsigned int linenum) #define FMT_Word64 "lu" #define FMT_Int64 "ld" #else +#if defined(mingw32_HOST_OS) +/* mingw doesn't understand %llu/%lld - it treats them as 32-bit + rather than 64-bit */ +#define FMT_Word64 "I64u" +#define FMT_Int64 "I64d" +#else #define FMT_Word64 "llu" #define FMT_Int64 "lld" #endif +#endif /* ----------------------------------------------------------------------------- Include everything STG-ish