diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-18 18:12:21 -0700 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-18 18:12:21 -0700 |
commit | 43134a0dac6bc410a9c63e42d5ad209165ae0bcf (patch) | |
tree | 7118e496109720d9bf7a0b483e0ebf400ff27180 /Include | |
parent | 48215b746f05783513c2683fc5751bbe1bf55661 (diff) | |
download | cpython-43134a0dac6bc410a9c63e42d5ad209165ae0bcf.tar.gz |
stop using Py_LL and Py_ULL
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pyport.h | 4 | ||||
-rw-r--r-- | Include/pythread.h | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index 421b9549df..19941ec11a 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -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 diff --git a/Include/pythread.h b/Include/pythread.h index 459a5d516c..dd681be93b 100644 --- a/Include/pythread.h +++ b/Include/pythread.h @@ -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 |