summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-05-29 01:28:40 (GMT)
committerGuido van Rossum <guido@python.org>1998-05-29 01:28:40 (GMT)
commit2a5119b68035a9ef2079f0483e6954e487829a22 (patch)
tree3e4b0917a379e00e92eee3fe011b800452a90ead /Modules/_tkinter.c
parente4e021bf2182855910f3a6bb8e24e624ec6e92be (diff)
downloadcpython-2a5119b68035a9ef2079f0483e6954e487829a22.zip
cpython-2a5119b68035a9ef2079f0483e6954e487829a22.tar.gz
cpython-2a5119b68035a9ef2079f0483e6954e487829a22.tar.bz2
On Windows, need #include <windows.h>; and it's MS_WINDOWS, not MS_WIN32.
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r--Modules/_tkinter.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index d2bbff7..1c2c793 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -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 */