From 4fe55106d1bd99015b18118bf1067a1189e070ea Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 6 Sep 2016 11:58:01 -0700 Subject: require standard int types to be defined (#17884) --- Python/dtoa.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'Python/dtoa.c') diff --git a/Python/dtoa.c b/Python/dtoa.c index e0665b667e..94eb2676e2 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 -- cgit v1.2.1