Tk Source Code

Artifact [ca5b16b0]
Login

Artifact ca5b16b01874b5828bc252343528e2eecded36a2fcb32e032712189f43058e88:

Attachment "x-gcc_break.patch" to ticket [f6d40f99] added by erikleunissen 2025-04-24 10:47:21.
Index: win/tkWinInt.h
==================================================================
--- win/tkWinInt.h
+++ win/tkWinInt.h
@@ -12,21 +12,23 @@
  */
 
 #ifndef _TKWININT
 #define _TKWININT
 
-#ifndef _TKINT
-#include "tkInt.h"
-#endif
-
 /*
- * Include platform specific public interfaces.
+ * Include platform specific public interfaces as the very first step. This is
+ * necessary because definitions provided by subsequent header files depend on
+ * the interface versions defined in tkWin.h
  */
 
 #ifndef _TKWIN
 #include "tkWin.h"
 #endif
+
+#ifndef _TKINT
+#include "tkInt.h"
+#endif
 
 /*
  * Define constants missing from older Win32 SDK header files.
  */