]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Add workaround for Visual Studio not knowing about "inline".
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 25 Jul 2021 20:31:59 +0000 (20:31 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 25 Jul 2021 20:31:59 +0000 (20:31 +0000)
json_tokener.c

index 1a74155bd373338028acd8e6170957b9a37ccbb5..052c4b529b1a16d62a8765c690fd83670d0e98bd 100644 (file)
 #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