summaryrefslogtreecommitdiff
path: root/Include/Python.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/Python.h')
-rw-r--r--Include/Python.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h
index a2be68f78a..2d48d2eaa1 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.