summaryrefslogtreecommitdiff
path: root/passes
diff options
context:
space:
mode:
authorWilliam Speirs <bill.speirs@gmail.com>2014-10-16 12:06:54 -0400
committerClifford Wolf <clifford@clifford.at>2014-10-17 11:41:36 +0200
commit31267a1ae8d670c4b8749fc55b07c01d9285a488 (patch)
tree678fb6b416aef122cbb9b9affd5f9c702dc2ce03 /passes
parentfda52f05f277720e12aadb4716415ec9bff616a5 (diff)
Header changes so it will compile on VS
Diffstat (limited to 'passes')
-rw-r--r--passes/abc/abc.cc7
-rw-r--r--passes/cmds/cover.cc13
-rw-r--r--passes/cmds/show.cc5
-rw-r--r--passes/hierarchy/hierarchy.cc6
4 files changed, 25 insertions, 6 deletions
diff --git a/passes/abc/abc.cc b/passes/abc/abc.cc
index 89180439..79aa067d 100644
--- a/passes/abc/abc.cc
+++ b/passes/abc/abc.cc
@@ -43,15 +43,18 @@
#include "kernel/sigtools.h"
#include "kernel/cost.h"
#include "kernel/log.h"
-#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <dirent.h>
#include <cerrno>
#include <sstream>
#include <climits>
+#ifndef _WIN32
+# include <unistd.h>
+# include <dirent.h>
+#endif
+
#include "blifparse.h"
USING_YOSYS_NAMESPACE
diff --git a/passes/cmds/cover.cc b/passes/cmds/cover.cc
index 857d5aa4..b8baaf3d 100644
--- a/passes/cmds/cover.cc
+++ b/passes/cmds/cover.cc
@@ -17,9 +17,18 @@
*
*/
-#include <sys/types.h>
-#include <unistd.h>
#include "kernel/yosys.h"
+#include <sys/types.h>
+
+#ifndef _WIN32
+# include <unistd.h>
+#else
+# include <io.h>
+#endif
+
+#include "kernel/register.h"
+#include "kernel/rtlil.h"
+#include "kernel/log.h"
USING_YOSYS_NAMESPACE
PRIVATE_NAMESPACE_BEGIN
diff --git a/passes/cmds/show.cc b/passes/cmds/show.cc
index c6335cb3..1413742d 100644
--- a/passes/cmds/show.cc
+++ b/passes/cmds/show.cc
@@ -21,7 +21,10 @@
#include "kernel/celltypes.h"
#include "kernel/log.h"
#include <string.h>
-#include <dirent.h>
+
+#ifndef _WIN32
+# include <dirent.h>
+#endif
#ifdef YOSYS_ENABLE_READLINE
# include <readline/readline.h>
diff --git a/passes/hierarchy/hierarchy.cc b/passes/hierarchy/hierarchy.cc
index 4b414d3c..2a7e9634 100644
--- a/passes/hierarchy/hierarchy.cc
+++ b/passes/hierarchy/hierarchy.cc
@@ -21,7 +21,11 @@
#include <stdlib.h>
#include <stdio.h>
#include <set>
-#include <unistd.h>
+
+#ifndef _WIN32
+# include <unistd.h>
+#endif
+
USING_YOSYS_NAMESPACE
PRIVATE_NAMESPACE_BEGIN