summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2004-02-10 16:50:21 (GMT)
committerSkip Montanaro <skip@pobox.com>2004-02-10 16:50:21 (GMT)
commit7befb9966e1435475a9d2e9d3cc3670564ce77aa (patch)
tree4e33029bfd72bb8eaa72f9fdd5c1712e5ecdb97b /Modules
parent05eb40128e305e07527d317e3964e8a1160d0961 (diff)
downloadcpython-7befb9966e1435475a9d2e9d3cc3670564ce77aa.zip
cpython-7befb9966e1435475a9d2e9d3cc3670564ce77aa.tar.gz
cpython-7befb9966e1435475a9d2e9d3cc3670564ce77aa.tar.bz2
remove support for missing ANSI C header files (limits.h, stddef.h, etc).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/expat/macconfig.h6
-rw-r--r--Modules/posixmodule.c2
-rw-r--r--Modules/readline.c2
-rw-r--r--Modules/socketmodule.c4
4 files changed, 2 insertions, 12 deletions
diff --git a/Modules/expat/macconfig.h b/Modules/expat/macconfig.h
index 3c5eb54..0a7f39d 100644
--- a/Modules/expat/macconfig.h
+++ b/Modules/expat/macconfig.h
@@ -42,15 +42,9 @@
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
-/* Define to 1 if you have the <stdlib.h> header file. */
-#define HAVE_STDLIB_H
-
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
-/* Define to 1 if you have the <string.h> header file. */
-#define HAVE_STRING_H
-
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 71a102c..e51310d 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -53,9 +53,7 @@ corresponding Unix manual entries for more information on calls.");
#include <sys/wait.h> /* For WNOHANG */
#endif
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
diff --git a/Modules/readline.c b/Modules/readline.c
index 7535ecf..e151537 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -12,7 +12,7 @@
#include <signal.h>
#include <errno.h>
-#if defined(HAVE_LOCALE_H) && defined(HAVE_SETLOCALE)
+#if defined(HAVE_SETLOCALE)
/* GNU readline() mistakenly sets the LC_CTYPE locale.
* This is evil. Only the user or the app's main() should do this!
* We must save and restore the locale around the rl_initialize() call.
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index c897f65..81a65f0 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -247,9 +247,7 @@ int h_errno; /* not used */
#endif
-#ifdef HAVE_STDDEF_H
-# include <stddef.h>
-#endif
+#include <stddef.h>
#ifndef offsetof
# define offsetof(type, member) ((size_t)(&((type *)0)->member))