From: Miodrag Milanovic Date: Wed, 15 Apr 2020 14:38:09 +0000 (+0200) Subject: Fix compile for mingw X-Git-Tag: working-ls180~638^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc21e58bb5fe0f4da3b90057cd1a568c4b40df39;p=yosys.git Fix compile for mingw --- 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