diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2004-07-27 15:57:24 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2004-07-27 15:57:24 (GMT) |
commit | fe393f47c662c307d2d3e90f785edf5821d54a8d (patch) | |
tree | 4029f95155ab2c344a7252379eb948fa18753b04 | |
parent | b600fe90a7d65e63e29941b3222cfba6880d3352 (diff) | |
download | cpython-fe393f47c662c307d2d3e90f785edf5821d54a8d.zip cpython-fe393f47c662c307d2d3e90f785edf5821d54a8d.tar.gz cpython-fe393f47c662c307d2d3e90f785edf5821d54a8d.tar.bz2 |
Use intptr_t/uintptr_t on Windows
-rw-r--r-- | Include/Python.h | 5 | ||||
-rw-r--r-- | PC/pyconfig.h | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h index a2be68f..2d48d2e 100644 --- a/Include/Python.h +++ b/Include/Python.h @@ -41,6 +41,11 @@ #include <unistd.h> #endif +/* For uintptr_t, intptr_t */ +#ifdef HAVE_STDDEF_H +#include <stddef.h> +#endif + /* CAUTION: Build setups should ensure that NDEBUG is defined on the * compiler command line when building Python in release mode; else * assert() calls won't be removed. diff --git a/PC/pyconfig.h b/PC/pyconfig.h index 557342f..2109d22 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -267,6 +267,11 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */ #define SIZEOF_LONG 4 #define SIZEOF_LONG_LONG 8 +/* Atleast VC 7.1 has them. If some compiler does not provide them, + #ifdef appropriately .*/ +#define HAVE_UINTPTR_T 1 +#define HAVE_INTPTR_T 1 + #endif /* Fairly standard from here! */ @@ -484,6 +489,9 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */ /* Define if you have the <stdarg.h> prototypes. */ #define HAVE_STDARG_PROTOTYPES +/* Define if you have the <stddef.h> header file. */ +#define HAVE_STDDEF_H 1 + /* Define if you have the <sys/audioio.h> header file. */ /* #undef HAVE_SYS_AUDIOIO_H */ |