mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
stop using Py_LL and Py_ULL
This commit is contained in:
parent
41e35f37ed
commit
ac965ca16c
4 changed files with 86 additions and 90 deletions
|
|
@ -715,10 +715,6 @@ extern pid_t forkpty(int *, char *, struct termios *, struct winsize *);
|
|||
#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Older Microsoft compilers don't support the C99 long long literal suffixes,
|
||||
* so these will be defined in PC/pyconfig.h for those compilers.
|
||||
*/
|
||||
#ifndef Py_LL
|
||||
#define Py_LL(x) x##LL
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -42,9 +42,9 @@ PyAPI_FUNC(int) PyThread_acquire_lock(PyThread_type_lock, int);
|
|||
|
||||
/* In the NT API, the timeout is a DWORD and is expressed in milliseconds */
|
||||
#if defined (NT_THREADS)
|
||||
#if (Py_LL(0xFFFFFFFF) * 1000 < PY_TIMEOUT_MAX)
|
||||
#if 0xFFFFFFFFLL * 1000 < PY_TIMEOUT_MAX
|
||||
#undef PY_TIMEOUT_MAX
|
||||
#define PY_TIMEOUT_MAX (Py_LL(0xFFFFFFFF) * 1000)
|
||||
#define PY_TIMEOUT_MAX (0xFFFFFFFFLL * 1000)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue