From: Anonymous Maarten Date: Wed, 17 Jun 2020 13:08:55 +0000 (+0200) Subject: MSVC defines TRANSPARENT too X-Git-Tag: working-ls180~467^2~3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c9c13c29dfcbb9c54f1d2388e623829b6f5a0c25;p=yosys.git MSVC defines TRANSPARENT too --- diff --git a/kernel/yosys.h b/kernel/yosys.h index c922faf26..4fca39228 100644 --- a/kernel/yosys.h +++ b/kernel/yosys.h @@ -117,11 +117,11 @@ 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 + +// mingw and msvc include `wingdi.h` which defines a TRANSPARENT macro +// that conflicts with X(TRANSPARENT) entry in kernel/constids.inc +# undef TRANSPARENT #endif #ifndef PATH_MAX