mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-16 03:12:45 -05:00
Better fix for MSVC.
This commit is contained in:
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"
|
||||
|
||||
Reference in New Issue
Block a user