X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.h;h=abc4230e78cccc75cbf90731102a009f053760dd;hb=f3613d892c55647b27b0d42b9766e7435e32794b;hp=cddf34bd66628a844f0b1ba2765faf2148be6a5e;hpb=d96ffe6df6b1327912445cd71b47d1633316d372;p=xboard.git diff --git a/backend.h b/backend.h index cddf34b..abc4230 100644 --- a/backend.h +++ b/backend.h @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -70,11 +70,17 @@ #else /* place holder * or dummy types for other compiler + * [HGM] seems that -mno-cygwin comple needs %I64? */ #define u64 unsigned long long #define s64 signed long long - #define u64Display "%llu" - #define s64Display "%lld" + #ifdef __MINGW32__ + #define u64Display "%I64u" + #define s64Display "%I64d" + #else + #define u64Display "%llu" + #define s64Display "%lld" + #endif #define u64Const(c) (c ## ULL) #define s64Const(c) (c ## LL) #endif