From: umarcor Date: Sat, 26 Dec 2020 22:21:30 +0000 (+0100) Subject: kernel/yosys.h: undef CONST on WIN32 X-Git-Tag: working-ls180~141^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=16c4182c74f7898ae6e3c7cbac8a29d8cc8e5510;p=yosys.git kernel/yosys.h: undef CONST on WIN32 --- 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