3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-13 04:28:18 +00:00

Merge pull request #2507 from umarcor/fix/msys2

kernel/yosys.h: undef CONST on WIN32
This commit is contained in:
whitequark 2020-12-28 02:33:30 +00:00 committed by GitHub
commit f4a800899c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,8 +121,9 @@ extern Tcl_Obj *Tcl_ObjSetVar2(Tcl_Interp *interp, Tcl_Obj *part1Ptr, Tcl_Obj *p
# define fileno _fileno # define fileno _fileno
# endif # endif
// mingw and msvc include `wingdi.h` which defines a TRANSPARENT macro // The following defines conflict with our identifiers:
// that conflicts with X(TRANSPARENT) entry in kernel/constids.inc # undef CONST
// `wingdi.h` defines a TRANSPARENT macro that conflicts with X(TRANSPARENT) entry in kernel/constids.inc
# undef TRANSPARENT # undef TRANSPARENT
#endif #endif