From b17d00d8730f0ac28a343491b7c9c8c696411f3c Mon Sep 17 00:00:00 2001 From: jsteube Date: Sat, 1 Oct 2016 13:42:40 +0200 Subject: [PATCH] Added fix for Visual Studio compiler in C mode --- include/common.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/common.h b/include/common.h index be8ae69ce..0777826f7 100644 --- a/include/common.h +++ b/include/common.h @@ -72,6 +72,15 @@ #define WIN32_LEAN_AND_MEAN #endif +/* The C++ standard denies redefinition of keywords, +but this is nededed for VS compiler which doesn't have inline keyword but has __inline +*/ +#ifndef __cplusplus +#if defined (_MSC_VER) +#define inline __inline +#endif +#endif + #if defined (_WIN) #define EOL "\r\n" #else