Browse Source

Merge pull request #373 from commodo/fix-appveyor-build

build: fix build on appveyor CI
tags/json-c-0.13-20171207
Eric Haszlakiewicz GitHub 7 years ago
parent
commit
04788421fe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      json_util.c
  2. +2
    -2
      strerror_override.h

+ 1
- 0
json_util.c View File

@@ -39,6 +39,7 @@
#endif /* HAVE_UNISTD_H */

#ifdef WIN32
# define strtoll _strtoi64
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
# include <io.h>


+ 2
- 2
strerror_override.h View File

@@ -10,12 +10,12 @@
extern "C" {
#endif

#include <string.h>

JSON_EXPORT char *_json_c_strerror(int errno_in);

#ifndef STRERROR_OVERRIDE_IMPL
#define strerror _json_c_strerror
#else
#include <string.h>
#endif

#ifdef __cplusplus


Loading…
Cancel
Save