Browse Source

Add workaround for Visual Studio not knowing about "inline".

tags/json-c-0.16-20220414
Eric Haszlakiewicz 4 years ago
parent
commit
f61f1a7a91
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      json_tokener.c

+ 7
- 0
json_tokener.c View File

@@ -52,6 +52,13 @@
#error You do not have strncasecmp on your system. #error You do not have strncasecmp on your system.
#endif /* HAVE_STRNCASECMP */ #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 /* The following helper functions are used to speed up parsing. They
* are faster than their ctype counterparts because they assume that * are faster than their ctype counterparts because they assume that
* the input is in ASCII and that the locale is set to "C". The * the input is in ASCII and that the locale is set to "C". The


Loading…
Cancel
Save