Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2018-12-14
13:10 • Closed ticket [98832303a9]: X11/X.h and Windows.h have conflicting symbols p... artifact: 359ee621a2 user: sebres
2018-12-13
21:42 • New ticket [98832303a9]. artifact: 52da2bcf7a user: anonymous

X11/X.h and Windows.h have conflicting symbols

Closed / Invalid98832303a93180c4663fa577f58fd347cf4561d2Created 8 years agoUpdated 8 years ago
Descriptionwiki2018-12-13 21:42:32
When building Tk with the latest Windows SDK, there are conflicting #defines.

The X11/X.h header defines 'None' and 'ControlMask' to literals, and the latest Windows SDK then attempts to use these as names. The preprocessor substitution replaces them and compilation fails.

See https://bugs.python.org/issue35402#msg331643 for details and our discussion on the Python tracker.

I didn't figure out whether the X.h header is necessary on Windows, and particularly whether it needs to be visible in the Tk.h header. We can patch our copy of Tk to undefine and redefine these names, but such a change would need to be upstreamed eventually anyway. For CPython on Windows, we will likely use an old Windows SDK or just avoid updating Tcl and Tk.

sebresplain2018-12-14 13:10:12
This is Tcl-core repository, please reopen the ticket in Tk-repo on https://core.tcl.tk/tk/tktnew
Log in (anonymous is fine) to add a comment.