aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2020-12-26 23:21:30 +0100
committerumarcor <unai.martinezcorral@ehu.eus>2020-12-28 02:21:19 +0100
commit16c4182c74f7898ae6e3c7cbac8a29d8cc8e5510 (patch)
tree006f7b1eeb846f63cea9da1852377f18bdea4ad6
parentf48298347cc01d538e20dd9d86b4f795780f8f1d (diff)
downloadyosys-16c4182c74f7898ae6e3c7cbac8a29d8cc8e5510.tar.gz
yosys-16c4182c74f7898ae6e3c7cbac8a29d8cc8e5510.tar.bz2
yosys-16c4182c74f7898ae6e3c7cbac8a29d8cc8e5510.zip
kernel/yosys.h: undef CONST on WIN32
-rw-r--r--kernel/yosys.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/yosys.h b/kernel/yosys.h
index ac4436c52..43aecdbc8 100644
--- a/kernel/yosys.h
+++ b/kernel/yosys.h
@@ -121,8 +121,9 @@ extern Tcl_Obj *Tcl_ObjSetVar2(Tcl_Interp *interp, Tcl_Obj *part1Ptr, Tcl_Obj *p
# define fileno _fileno
# endif
-// mingw and msvc include `wingdi.h` which defines a TRANSPARENT macro
-// that conflicts with X(TRANSPARENT) entry in kernel/constids.inc
+// The following defines conflict with our identifiers:
+# undef CONST
+// `wingdi.h` defines a TRANSPARENT macro that conflicts with X(TRANSPARENT) entry in kernel/constids.inc
# undef TRANSPARENT
#endif