diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-06 11:58:01 -0700 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-06 11:58:01 -0700 |
commit | 4fe55106d1bd99015b18118bf1067a1189e070ea (patch) | |
tree | f45f9460a346d3f25713d5fc6ccc0fd825521f56 /PC/pyconfig.h | |
parent | Issue #27928: Add scrypt (password-based key derivation function) to hashlib ... (diff) | |
download | cpython-4fe55106d1bd99015b18118bf1067a1189e070ea.tar.gz cpython-4fe55106d1bd99015b18118bf1067a1189e070ea.tar.bz2 cpython-4fe55106d1bd99015b18118bf1067a1189e070ea.zip |
require standard int types to be defined (#17884)
Diffstat (limited to 'PC/pyconfig.h')
-rw-r--r-- | PC/pyconfig.h | 37 |
1 files changed, 4 insertions, 33 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h index 24995f566f2..5d36f1ccb66 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -365,39 +365,10 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */ /* define signed and unsigned exact-width 32-bit and 64-bit types, used in the implementation of Python integers. */ -#ifndef PY_UINT32_T -#if SIZEOF_INT == 4 -#define HAVE_UINT32_T 1 -#define PY_UINT32_T unsigned int -#elif SIZEOF_LONG == 4 -#define HAVE_UINT32_T 1 -#define PY_UINT32_T unsigned long -#endif -#endif - -#ifndef PY_UINT64_T -#if SIZEOF_LONG_LONG == 8 -#define HAVE_UINT64_T 1 -#define PY_UINT64_T unsigned long long -#endif -#endif - -#ifndef PY_INT32_T -#if SIZEOF_INT == 4 -#define HAVE_INT32_T 1 -#define PY_INT32_T int -#elif SIZEOF_LONG == 4 -#define HAVE_INT32_T 1 -#define PY_INT32_T long -#endif -#endif - -#ifndef PY_INT64_T -#if SIZEOF_LONG_LONG == 8 -#define HAVE_INT64_T 1 -#define PY_INT64_T long long -#endif -#endif +#define PY_UINT32_T uint32_t +#define PY_UINT64_T uint64_t +#define PY_INT32_T int32_t +#define PY_INT64_T int64_t /* Fairly standard from here! */ |