1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-09 06:18:06 +00:00

Fixed compatilibilty issues on MSVS.

This commit is contained in:
troky 2014-07-09 10:39:36 +02:00
parent 72590bdcf2
commit 8b44007901
2 changed files with 12 additions and 1 deletions

View File

@ -1 +1,11 @@
#pragma once #pragma once
// POSIX open,read,write... deprecated as of VC++ 2005.
// Use ISO conformant _open,_read,_write instead.
#define open _open
#define write _write
#define close _close
#define read _read
#define snprintf _snprintf
#define dup _dup
#define dup2 _dup2

View File

@ -10,6 +10,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <mmsystem.h> #include <mmsystem.h>
#include <io.h> #include <io.h>
#include <unistd.h>
#include <process.h> #include <process.h>
#include <math.h> #include <math.h>
#include <time.h> #include <time.h>