mirror of https://github.com/YosysHQ/abc.git
Add missing includes for windows
This commit is contained in:
parent
59896d6ec8
commit
b73fcb78ed
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
#ifdef WIN32
|
||||
#include <process.h>
|
||||
#include <io.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#include "colors.h"
|
||||
|
||||
#if defined(WIN32) && !defined(__MINGW32__)
|
||||
#include <io.h>
|
||||
#define isatty _isatty
|
||||
#else
|
||||
#include <unistd.h>
|
||||
|
|
|
|||
|
|
@ -9,10 +9,12 @@
|
|||
#include <sys/types.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <io.h>
|
||||
#define unlink _unlink
|
||||
#define access _access
|
||||
#define R_OK 4
|
||||
#define W_OK 2
|
||||
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue