From: Eric Haszlakiewicz Date: Sun, 25 Jul 2021 20:31:59 +0000 (+0000) Subject: Add workaround for Visual Studio not knowing about "inline". X-Git-Tag: json-c-0.16-20220414~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f61f1a7a91dd25808e2081ed187ed5298ddad036;p=thirdparty%2Fjson-c.git Add workaround for Visual Studio not knowing about "inline". --- diff --git a/json_tokener.c b/json_tokener.c index 1a74155b..052c4b52 100644 --- a/json_tokener.c +++ b/json_tokener.c @@ -52,6 +52,13 @@ #error You do not have strncasecmp on your system. #endif /* HAVE_STRNCASECMP */ +#if defined(_MSC_VER) && (_MSC_VER <= 1800) +/* VS2013 doesn't know about "inline" */ +#define inline __inline +#elif defined(AIX_CC) +#define inline +#endif + /* The following helper functions are used to speed up parsing. They * are faster than their ctype counterparts because they assume that * the input is in ASCII and that the locale is set to "C". The