]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Protect pyconfig.h from multiple inclusions.
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 11 Nov 2002 13:37:28 +0000 (13:37 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 11 Nov 2002 13:37:28 +0000 (13:37 +0000)
configure
configure.in
pyconfig.h.in

index 32b00b2ebb8b22aafcee1db6121e15e179296393..3c902f8c3fe4f06ace5d6153e32561262e8b961d 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 1.365 .
+# From configure.in Revision: 1.366 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.53 for python 2.3.
 #
@@ -1237,6 +1237,8 @@ ac_config_headers="$ac_config_headers pyconfig.h"
 
 
 
+
+
 VERSION=2.3
 
 
index 79ace170b2fcd803d548acbb44da173d39911448..07f452dd1b8c77cfb5fc21af86d9e9cb3527d5cd 100644 (file)
@@ -11,11 +11,17 @@ AC_CONFIG_HEADER(pyconfig.h)
 
 # This is for stuff that absolutely must end up in pyconfig.h.
 # Please use pyport.h instead, if possible.
+AH_TOP([
+#ifndef Py_PYCONFIG_H
+#define Py_PYCONFIG_H
+])
 AH_BOTTOM([
 /* Define the macros needed if on a UnixWare 7.x system. */
 #if defined(__USLC__) && defined(__SCO_VERSION__)
 #define STRICT_SYSV_CURSES /* Don't use ncurses extensions */
 #endif
+
+#endif /*Py_PYCONFIG_H*/
 ])
 
 AC_SUBST(VERSION)
index a8bede8b6c8f1701c2bd1d8a1ea5a60037197b30..a6f7e83e396d3f0705f2be0e22602a58afbca487 100644 (file)
@@ -1,5 +1,10 @@
 /* pyconfig.h.in.  Generated from configure.in by autoheader.  */
 
+
+#ifndef Py_PYCONFIG_H
+#define Py_PYCONFIG_H
+
+
 /* Define for AIX if your compiler is a genuine IBM xlC/xlC_r and you want
    support for AIX C++ shared extension modules. */
 #undef AIX_GENUINE_CPLUSPLUS
 #define STRICT_SYSV_CURSES /* Don't use ncurses extensions */
 #endif
 
+#endif /*Py_PYCONFIG_H*/
+