kernel/yosys.h: undef CONST on WIN32
authorumarcor <unai.martinezcorral@ehu.eus>
Sat, 26 Dec 2020 22:21:30 +0000 (23:21 +0100)
committerumarcor <unai.martinezcorral@ehu.eus>
Mon, 28 Dec 2020 01:21:19 +0000 (02:21 +0100)
kernel/yosys.h

index ac4436c52445dd41f03498e58140d6a40cb446d2..43aecdbc8e508529f50eb85404ca7f85cfb0e63d 100644 (file)
@@ -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