summaryrefslogtreecommitdiff
path: root/kernel/yosys.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-10-17 15:51:33 +0200
committerClifford Wolf <clifford@clifford.at>2014-10-17 16:04:59 +0200
commitb3a6f8f53019d1984d4e319db459b11da0663aa3 (patch)
tree4f370d208bb86cfe681a0a054783ec7869c6ccf1 /kernel/yosys.h
parent468ae923748a01b2763bafa3cf5fba883fe06479 (diff)
More win32 (mxe and vs) build fixes
Diffstat (limited to 'kernel/yosys.h')
-rw-r--r--kernel/yosys.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/kernel/yosys.h b/kernel/yosys.h
index a0a42be9..b9182c1d 100644
--- a/kernel/yosys.h
+++ b/kernel/yosys.h
@@ -60,9 +60,9 @@
#include <stdio.h>
#ifndef _YOSYS_
-# error It looks like you are trying to build Yosys with the config defines set. \
+# error It looks like you are trying to build Yosys without the config defines set. \
When building Yosys with a custom make system, make sure you set all the \
- defines the Yosys Makefile would set for your build configuration.
+ defines the Yosys Makefile would set for your build configuration.
#endif
#ifdef YOSYS_ENABLE_TCL
@@ -74,8 +74,6 @@
# define NOMINMAX 1
# undef YY_NO_UNISTD_H
# define YY_NO_UNISTD_H 1
-# undef _CRT_SECURE_NO_WARNINGS
-# define _CRT_SECURE_NO_WARNINGS 1
# include <windows.h>
# include <io.h>
@@ -89,6 +87,11 @@
# define popen _popen
# define pclose _pclose
# define PATH_MAX MAX_PATH
+
+# ifndef __MINGW32__
+# define isatty _isatty
+# define fileno _fileno
+# endif
#endif
#define PRIVATE_NAMESPACE_BEGIN namespace {