diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-06 18:58:01 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-06 18:58:01 (GMT) |
commit | 4fe55106d1bd99015b18118bf1067a1189e070ea (patch) | |
tree | f45f9460a346d3f25713d5fc6ccc0fd825521f56 /Python/dtoa.c | |
parent | 39093e9e6836b98dc67979e4e888e4bc639caa07 (diff) | |
download | cpython-4fe55106d1bd99015b18118bf1067a1189e070ea.zip cpython-4fe55106d1bd99015b18118bf1067a1189e070ea.tar.gz cpython-4fe55106d1bd99015b18118bf1067a1189e070ea.tar.bz2 |
require standard int types to be defined (#17884)
Diffstat (limited to 'Python/dtoa.c')
-rw-r--r-- | Python/dtoa.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/Python/dtoa.c b/Python/dtoa.c index e0665b6..94eb267 100644 --- a/Python/dtoa.c +++ b/Python/dtoa.c @@ -151,18 +151,9 @@ #endif -#if defined(HAVE_UINT32_T) && defined(HAVE_INT32_T) -typedef PY_UINT32_T ULong; -typedef PY_INT32_T Long; -#else -#error "Failed to find an exact-width 32-bit integer type" -#endif - -#if defined(HAVE_UINT64_T) -#define ULLong PY_UINT64_T -#else -#undef ULLong -#endif +typedef uint32_t ULong; +typedef int32_t Long; +typedef uint64_t ULLong; #undef DEBUG #ifdef Py_DEBUG |