X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.h;h=244838dd187147acc3a39f833f4bed4aec97b7c3;hb=a033b3e97d60c1d05ee5ec3a54f7c61d6225962a;hp=41f8da1c15e186fdc7c2d6f0ccaadc6088a125d2;hpb=b1f2ba8082d89aeefcf0acc7007d629b734e5f4c;p=xboard.git diff --git a/backend.h b/backend.h index 41f8da1..244838d 100644 --- a/backend.h +++ b/backend.h @@ -174,21 +174,33 @@ 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 */ -#define u64Display "%I64u" -#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 -#else - /* GNU gcc */ - #define u64 unsigned long long -#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" + #else + /* place holder + * or dummy types for other compiler + */ + #define u64 unsigned __int64 + #define s64 signed __int64 + #define u64Display "%I64u" + #endif +#else + /* GNU gcc */ + #define u64 unsigned long long + #define s64 signed long long + #define u64Display "%llu" +#endif + /* pgntags.c prototypes */