summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
Diffstat (limited to 'Include')
-rw-r--r--Include/Python.h6
-rw-r--r--Include/pyport.h2
-rw-r--r--Include/structmember.h2
3 files changed, 0 insertions, 10 deletions
diff --git a/Include/Python.h b/Include/Python.h
index bff2c57..232cdbe 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -15,11 +15,7 @@
#define WITH_CYCLE_GC 1
#endif
-#ifdef HAVE_LIMITS_H
#include <limits.h>
-#else
-#error "limits.h is required by std C -- why isn't HAVE_LIMITS_H defined?"
-#endif
#ifndef UCHAR_MAX
#error "Something's broken. UCHAR_MAX should be defined in limits.h."
@@ -40,9 +36,7 @@
#include <string.h>
#include <errno.h>
-#ifdef HAVE_STDLIB_H
#include <stdlib.h>
-#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
diff --git a/Include/pyport.h b/Include/pyport.h
index 5b0e590..79b92c3 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -85,9 +85,7 @@ typedef PY_LONG_LONG Py_intptr_t;
# error "Python needs a typedef for Py_uintptr_t in pyport.h."
#endif /* HAVE_UINTPTR_T */
-#ifdef HAVE_STDLIB_H
#include <stdlib.h>
-#endif
#include <math.h> /* Moved here from the math section, before extern "C" */
diff --git a/Include/structmember.h b/Include/structmember.h
index 3f4cfe0..015ca19 100644
--- a/Include/structmember.h
+++ b/Include/structmember.h
@@ -7,9 +7,7 @@ extern "C" {
/* Interface to map C struct members to Python object attributes */
-#ifdef HAVE_STDDEF_H
#include <stddef.h> /* For offsetof */
-#endif
/* The offsetof() macro calculates the offset of a structure member
in its structure. Unfortunately this cannot be written down