Better fix for MSVC.
This commit is contained in:
parent
e3dd4a6581
commit
fc1d6c7e84
7 changed files with 50 additions and 20 deletions
12
src/3rdparty/jansson/load.c
vendored
12
src/3rdparty/jansson/load.c
vendored
|
@ -18,12 +18,12 @@
|
|||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
||||
#if defined(HAVE_UNISTD_H) && !defined(_MSC_VER)
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define STDIN_FILENO 0
|
||||
#if defined(HAVE_UNISTD_H)
|
||||
# include <unistd.h>
|
||||
#elif defined(_MSC_VER)
|
||||
# include <io.h>
|
||||
# define HAVE_UNISTD_H
|
||||
# define STDIN_FILENO 0
|
||||
#endif
|
||||
|
||||
#include "jansson.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue