]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use intptr_t/uintptr_t on Windows
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 27 Jul 2004 15:57:24 +0000 (15:57 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 27 Jul 2004 15:57:24 +0000 (15:57 +0000)
Include/Python.h
PC/pyconfig.h

index a2be68f78ac9331753e7df41d9e7451bace5caef..2d48d2eaa107f685cf41bcf44e0559ff365844b6 100644 (file)
 #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.
index 557342f876e45b844e9258eecf6d2faac8b9a0c3..2109d22959a9e47def2bcf9c053221d0d8b3831e 100644 (file)
@@ -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 */