From 16c4182c74f7898ae6e3c7cbac8a29d8cc8e5510 Mon Sep 17 00:00:00 2001 From: umarcor Date: Sat, 26 Dec 2020 23:21:30 +0100 Subject: [PATCH] kernel/yosys.h: undef CONST on WIN32 --- kernel/yosys.h | 5 +++-- 1 file 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 -- 2.30.2