mirror of https://github.com/python/cpython.git
On Windows, need #include <windows.h>; and it's MS_WINDOWS, not MS_WIN32.
This commit is contained in:
parent
e4e021bf21
commit
2a5119b680
|
@ -62,6 +62,10 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef MS_WINDOWS
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef macintosh
|
#ifdef macintosh
|
||||||
#define MAC_TCL
|
#define MAC_TCL
|
||||||
#include "myselect.h"
|
#include "myselect.h"
|
||||||
|
@ -258,7 +262,7 @@ Tkinter_Error(v)
|
||||||
/**** Utils ****/
|
/**** Utils ****/
|
||||||
|
|
||||||
#ifdef WITH_THREAD
|
#ifdef WITH_THREAD
|
||||||
#ifndef MS_WIN32
|
#ifndef MS_WINDOWS
|
||||||
/* Millisecond sleep() for Unix platforms. */
|
/* Millisecond sleep() for Unix platforms. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -272,7 +276,7 @@ Sleep(milli)
|
||||||
t.tv_usec = (milli%1000) * 1000;
|
t.tv_usec = (milli%1000) * 1000;
|
||||||
select(0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &t);
|
select(0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &t);
|
||||||
}
|
}
|
||||||
#endif /* MS_WIN32 */
|
#endif /* MS_WINDOWS */
|
||||||
#endif /* WITH_THREAD */
|
#endif /* WITH_THREAD */
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue