Fix compile for mingw
authorMiodrag Milanovic <mmicko@gmail.com>
Wed, 15 Apr 2020 14:38:09 +0000 (16:38 +0200)
committerMiodrag Milanovic <mmicko@gmail.com>
Wed, 15 Apr 2020 14:38:09 +0000 (16:38 +0200)
kernel/yosys.h

index 6aed7c96ab4fabf6f22e0ee48422ecf2ccc85f4b..859d5d3332721ef9dab3e06fd77a1cc5f8494e8b 100644 (file)
@@ -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