From 008288b467c8f2c94508b957d078915f121cc22c Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Mon, 8 Sep 2014 09:25:18 +0200 Subject: [PATCH] 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. --- book.c | 2 ++ winboard/config.h | 1 + 2 files changed, 3 insertions(+), 0 deletions(-) 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 -- 1.7.0.4