summaryrefslogtreecommitdiffstats
path: root/Include/pytime.h
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-06 20:24:00 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-09-06 20:24:00 (GMT)
commit9b3d77052f58858ebe1f6ff0dd8dc1caf933cd62 (patch)
tree8a2fc78befc25702a9bf1f474644ef2ed2367138 /Include/pytime.h
parent88bd3edb3e533ca426d633b97fad91d82aeb2b34 (diff)
downloadcpython-9b3d77052f58858ebe1f6ff0dd8dc1caf933cd62.zip
cpython-9b3d77052f58858ebe1f6ff0dd8dc1caf933cd62.tar.gz
cpython-9b3d77052f58858ebe1f6ff0dd8dc1caf933cd62.tar.bz2
replace Python aliases for standard integer types with the standard integer types (#17884)
Diffstat (limited to 'Include/pytime.h')
-rw-r--r--Include/pytime.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/Include/pytime.h b/Include/pytime.h
index 859321b..595fafc 100644
--- a/Include/pytime.h
+++ b/Include/pytime.h
@@ -13,16 +13,12 @@ functions and constants
extern "C" {
#endif
-#ifdef PY_INT64_T
/* _PyTime_t: Python timestamp with subsecond precision. It can be used to
store a duration, and so indirectly a date (related to another date, like
UNIX epoch). */
-typedef PY_INT64_T _PyTime_t;
+typedef int64_t _PyTime_t;
#define _PyTime_MIN PY_LLONG_MIN
#define _PyTime_MAX PY_LLONG_MAX
-#else
-# error "_PyTime_t need signed 64-bit integer type"
-#endif
typedef enum {
/* Round towards minus infinity (-inf).