diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-06 20:33:56 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-06 20:33:56 (GMT) |
commit | b9d9eeda2ad0155c2bb1ce6601f5b311d411f848 (patch) | |
tree | b814cfbf85ac6c394f131b8ef95e300a7f47477e /Include | |
parent | d982c8f51e33356bcb41678d7759395078ba536b (diff) | |
download | cpython-b9d9eeda2ad0155c2bb1ce6601f5b311d411f848.zip cpython-b9d9eeda2ad0155c2bb1ce6601f5b311d411f848.tar.gz cpython-b9d9eeda2ad0155c2bb1ce6601f5b311d411f848.tar.bz2 |
require uintptr_t to exist
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pyport.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index eff7b54..2f78052 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -23,10 +23,6 @@ Py_DEBUG Meaning: Extra checks compiled in for debug mode. Used in: Py_SAFE_DOWNCAST -HAVE_UINTPTR_T -Meaning: The C9X type uintptr_t is supported by the compiler -Used in: Py_uintptr_t - **************************************************************************/ /* typedefs for some C9X-defined synonyms for integral types. @@ -90,26 +86,9 @@ Used in: Py_uintptr_t * without loss of information. Similarly for intptr_t, wrt a signed * integral type. */ -#ifdef HAVE_UINTPTR_T typedef uintptr_t Py_uintptr_t; typedef intptr_t Py_intptr_t; -#elif SIZEOF_VOID_P <= SIZEOF_INT -typedef unsigned int Py_uintptr_t; -typedef int Py_intptr_t; - -#elif SIZEOF_VOID_P <= SIZEOF_LONG -typedef unsigned long Py_uintptr_t; -typedef long Py_intptr_t; - -#elif SIZEOF_VOID_P <= SIZEOF_LONG_LONG -typedef unsigned long long Py_uintptr_t; -typedef long long Py_intptr_t; - -#else -# error "Python needs a typedef for Py_uintptr_t in pyport.h." -#endif /* HAVE_UINTPTR_T */ - /* Py_ssize_t is a signed integral type such that sizeof(Py_ssize_t) == * sizeof(size_t). C99 doesn't define such a thing directly (size_t is an * unsigned integral type). See PEP 353 for details. |