]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
On Windows, need #include <windows.h>; and it's MS_WINDOWS, not MS_WIN32.
authorGuido van Rossum <guido@python.org>
Fri, 29 May 1998 01:28:40 +0000 (01:28 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 29 May 1998 01:28:40 +0000 (01:28 +0000)
Modules/_tkinter.c

index d2bbff743e18f60686ff8ceab74c7e9a1858f01b..1c2c7932b74efc3bd29cb5f49b647c86a0909e6e 100644 (file)
@@ -62,6 +62,10 @@ PERFORMANCE OF THIS SOFTWARE.
 #include "thread.h"
 #endif
 
+#ifdef MS_WINDOWS
+#include <windows.h>
+#endif
+
 #ifdef macintosh
 #define MAC_TCL
 #include "myselect.h"
@@ -258,7 +262,7 @@ Tkinter_Error(v)
 /**** Utils ****/
 
 #ifdef WITH_THREAD
-#ifndef MS_WIN32
+#ifndef MS_WINDOWS
 /* Millisecond sleep() for Unix platforms. */
 
 static void
@@ -272,7 +276,7 @@ Sleep(milli)
        t.tv_usec = (milli%1000) * 1000;
        select(0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &t);
 }
-#endif /* MS_WIN32 */
+#endif /* MS_WINDOWS */
 #endif /* WITH_THREAD */
 
 \f