aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2020-04-15 16:38:09 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2020-04-15 16:38:09 +0200
commitbc21e58bb5fe0f4da3b90057cd1a568c4b40df39 (patch)
treeabda0962f009dd935d503400f81d4410fb0c03f5 /kernel
parent7c06cb615745fce4490c1d5b9dcf48d40fa00445 (diff)
downloadyosys-bc21e58bb5fe0f4da3b90057cd1a568c4b40df39.tar.gz
yosys-bc21e58bb5fe0f4da3b90057cd1a568c4b40df39.tar.bz2
yosys-bc21e58bb5fe0f4da3b90057cd1a568c4b40df39.zip
Fix compile for mingw
Diffstat (limited to 'kernel')
-rw-r--r--kernel/yosys.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/yosys.h b/kernel/yosys.h
index 6aed7c96a..859d5d333 100644
--- a/kernel/yosys.h
+++ b/kernel/yosys.h
@@ -117,6 +117,10 @@ extern Tcl_Obj *Tcl_ObjSetVar2(Tcl_Interp *interp, Tcl_Obj *part1Ptr, Tcl_Obj *p
# define PATH_MAX MAX_PATH
# define isatty _isatty
# define fileno _fileno
+# else
+// mingw includes `wingdi.h` which defines a TRANSPARENT macro
+// that conflicts with X(TRANSPARENT) entry in kernel/constids.inc
+# undef TRANSPARENT
# endif
#endif