From: H.G.Muller Date: Mon, 8 Sep 2014 07:25:18 +0000 (+0200) Subject: Fix MSVC problems X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=008288b467c8f2c94508b957d078915f121cc22c;hp=966cbbc337b0beb4f230a3ba0498dab9b3a59591;p=xboard.git Fix MSVC problems Book.c did not include config.h, and thus missed the redefinition of snprintf (which is not known in MSVC). The use of 'inline' in parser.c also needed an MSVC redefinition, now added to winboard/config.h. --- diff --git a/book.c b/book.c index 89ac610..dc81458 100644 --- a/book.c +++ b/book.c @@ -28,6 +28,8 @@ * ------------------------------------------------------------------------ */ +#include "config.h" + #include #include #include diff --git a/winboard/config.h b/winboard/config.h index cc584ef..1b1bddd 100644 --- a/winboard/config.h +++ b/winboard/config.h @@ -155,6 +155,7 @@ #ifdef _MSC_VER #define snprintf _snprintf +#define inline __inline #if _MSC_VER < 1500 #define vsnprintf _vsnprintf #endif