MSVC defines TRANSPARENT too
authorAnonymous Maarten <anonymous.maarten@gmail.com>
Wed, 17 Jun 2020 13:08:55 +0000 (15:08 +0200)
committerAnonymous Maarten <anonymous.maarten@gmail.com>
Wed, 17 Jun 2020 13:10:08 +0000 (15:10 +0200)
kernel/yosys.h

index c922faf26848075049401853579d55dfee534e60..4fca392282fa7e176833c8394f8b357026f5ec03 100644 (file)
@@ -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