summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-19 01:12:21 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-09-19 01:12:21 (GMT)
commitac965ca16c59308fdafbeff9e36dfaf06505a512 (patch)
tree52f3e070857632405fff16657627ba2fe3f527eb /Include
parent41e35f37edf760898f9c440ac17a4c542c9d88a1 (diff)
downloadcpython-ac965ca16c59308fdafbeff9e36dfaf06505a512.zip
cpython-ac965ca16c59308fdafbeff9e36dfaf06505a512.tar.gz
cpython-ac965ca16c59308fdafbeff9e36dfaf06505a512.tar.bz2
stop using Py_LL and Py_ULL
Diffstat (limited to 'Include')
-rw-r--r--Include/pyport.h4
-rw-r--r--Include/pythread.h4
2 files changed, 2 insertions, 6 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index 421b954..19941ec 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 459a5d5..dd681be 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