mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Sleep() turns out to be win32 specific.
The timezone etc. overrides are win16 specific. Hope I got this right now...
This commit is contained in:
parent
c8adefef70
commit
b2fb36498d
1 changed files with 6 additions and 7 deletions
|
@ -61,14 +61,13 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#else
|
||||
#ifdef MS_WINDOWS
|
||||
#include <windows.h>
|
||||
#ifdef MS_WIN16
|
||||
/* These overrides not needed for Win32 */
|
||||
#define timezone _timezone
|
||||
#ifndef tzname
|
||||
#define tzname _tzname
|
||||
#endif
|
||||
#ifndef daylight
|
||||
#define daylight _daylight
|
||||
#endif
|
||||
#define altzone _altzone
|
||||
#endif /* MS_WIN16 */
|
||||
#endif /* MS_WINDOWS */
|
||||
#endif /* !__WATCOMC__ */
|
||||
|
||||
|
@ -473,13 +472,13 @@ floatsleep(secs)
|
|||
break;
|
||||
}
|
||||
#else /* !MSDOS */
|
||||
#ifdef MS_WINDOWS
|
||||
#ifdef MS_WIN32
|
||||
/* XXX Can't interrupt this sleep */
|
||||
Sleep((int)(secs*1000));
|
||||
#else /* !MS_WINDOWS */
|
||||
#else /* !MS_WIN32 */
|
||||
/* XXX Can't interrupt this sleep */
|
||||
sleep((int)secs);
|
||||
#endif /* !MS_WINDOWS */
|
||||
#endif /* !MS_WIN32 */
|
||||
#endif /* !MSDOS */
|
||||
#endif /* !__WATCOMC__ */
|
||||
#endif /* !macintosh */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue