X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.h;h=f782f8351c26b411afbce23646f668a29d69f7c7;hb=7593c72477c93032e5cacf5df0faa424aa64913c;hp=2c63b765fc8e983dadd3063242a3bee8eb5b8471;hpb=cda9681381317b37da384bc8450795c29e8dccc8;p=xboard.git diff --git a/backend.h b/backend.h index 2c63b76..f782f83 100644 --- a/backend.h +++ b/backend.h @@ -174,22 +174,42 @@ extern GameInfo gameInfo; #define ICS_ICC 1 #define ICS_FICS 2 #define ICS_CHESSNET 3 /* not really supported */ -int ics_type; - -/* unsigned int 64 for engine nodes work and display */ -#ifdef WIN32 - /* I don't know the name for this type of other compilers - * If it not work just added here - * Thats for MS Visual Studio - */ - #define u64 unsigned __int64 - #define u64Display "%I64u" -#else - /* GNU gcc */ - #define u64 unsigned long long - #define u64Display "%llu" -#endif - +int ics_type; + +/* unsigned int 64 for engine nodes work and display */ +#ifdef WIN32 + /* I don't know the name for this type of other compiler + * If it not work, just modify here + * This is for MS Visual Studio + */ + #ifdef _MSC_VER + #define u64 unsigned __int64 + #define s64 signed __int64 + #define u64Display "%I64u" + #define s64Display "%I64d" + #define u64Const(c) (c ## UI64) + #define s64Const(c) (c ## I64) + #else + /* place holder + * or dummy types for other compiler + */ + #define u64 unsigned __int64 + #define s64 signed __int64 + #define u64Display "%I64u" + #define s64Display "%I64d" + #define u64Const(c) (c ## UI64) + #define s64Const(c) (c ## I64) + #endif +#else + /* GNU gcc */ + #define u64 unsigned long long + #define s64 signed long long + #define u64Display "%llu" + #define s64Display "%lld" + #define u64Const(c) (c ## ull) + #define s64Const(c) (c ## ll) +#endif + /* pgntags.c prototypes */