- python: include Python.h before glibc features.h.
authorjbj <devnull@localhost>
Thu, 1 Jan 2004 16:34:10 +0000 (16:34 +0000)
committerjbj <devnull@localhost>
Thu, 1 Jan 2004 16:34:10 +0000 (16:34 +0000)
CVS patchset: 7055
CVS date: 2004/01/01 16:34:10

14 files changed:
python/_rpmdb.c
python/header-py.c
python/rpmal-py.c
python/rpmdb-py.c
python/rpmds-py.c
python/rpmfd-py.c
python/rpmfi-py.c
python/rpmfts-py.c
python/rpmmi-py.c
python/rpmmodule.c
python/rpmrc-py.c
python/rpmte-py.c
python/rpmts-py.c
python/system.h [new file with mode: 0644]

index d65bb7a..959f398 100644 (file)
@@ -88,8 +88,8 @@
 
 /* --------------------------------------------------------------------- */
 
-#include <stddef.h>   /* for offsetof() */
 #include <Python.h>
+#include <stddef.h>   /* for offsetof() */
 #include <db.h>
 
 /* --------------------------------------------------------------------- */
 #endif
 
 #define PY_BSDDB_VERSION "4.2.4"
-static char *rcs_id = "$Id: _rpmdb.c,v 1.11 2003/12/16 03:41:35 jbj Exp $";
+static char *rcs_id = "$Id: _rpmdb.c,v 1.12 2004/01/01 16:34:10 jbj Exp $";
 
 
 #ifdef WITH_THREAD
index f4d56c9..6def28c 100644 (file)
@@ -4,12 +4,6 @@
 
 #include "system.h"
 
-#include "Python.h"
-#ifdef __LCLINT__
-#undef  PyObject_HEAD
-#define PyObject_HEAD   int _PyObjectHead;
-#endif
-
 #include "rpmio_internal.h"
 #include "rpmcli.h"    /* XXX for rpmCheckSig */
 
index 05e5277..47b60d1 100644 (file)
@@ -4,12 +4,6 @@
 
 #include "system.h"
 
-#include "Python.h"
-#ifdef __LCLINT__
-#undef  PyObject_HEAD
-#define PyObject_HEAD   int _PyObjectHead;
-#endif
-
 #include <rpmlib.h>
 
 #include "rpmal-py.h"
index 945f798..b5251f8 100644 (file)
@@ -4,12 +4,6 @@
 
 #include "system.h"
 
-#include "Python.h"
-#ifdef __LCLINT__
-#undef  PyObject_HEAD
-#define PyObject_HEAD   int _PyObjectHead;
-#endif
-
 #include <rpmlib.h>
 
 #include "rpmdb-py.h"
index 13c9493..937f2ba 100644 (file)
@@ -4,12 +4,6 @@
 
 #include "system.h"
 
-#include "Python.h"
-#ifdef __LCLINT__
-#undef  PyObject_HEAD
-#define PyObject_HEAD   int _PyObjectHead;
-#endif
-
 #include <rpmlib.h>
 
 #include "header-py.h"
index 5928d6a..472e93e 100644 (file)
@@ -4,12 +4,6 @@
 
 #include "system.h"
 
-#include "Python.h"
-#ifdef __LCLINT__
-#undef  PyObject_HEAD
-#define PyObject_HEAD   int _PyObjectHead;
-#endif
-
 #include <glob.h>      /* XXX rpmio.h */
 #include <dirent.h>    /* XXX rpmio.h */
 #include <rpmio_internal.h>
index 691ba06..9401395 100644 (file)
@@ -4,12 +4,6 @@
 
 #include "system.h"
 
-#include "Python.h"
-#ifdef __LCLINT__
-#undef  PyObject_HEAD
-#define PyObject_HEAD   int _PyObjectHead;
-#endif
-
 #include <rpmlib.h>
 
 #include "header-py.h"
index 537ec33..a976943 100644 (file)
@@ -4,7 +4,6 @@
 
 #include "system.h"
 
-#include "Python.h"
 #include "structmember.h"
 
 #ifdef __LCLINT__
index 4766bbd..8cb63be 100644 (file)
@@ -4,12 +4,6 @@
 
 #include "system.h"
 
-#include "Python.h"
-#ifdef __LCLINT__
-#undef  PyObject_HEAD
-#define PyObject_HEAD   int _PyObjectHead;
-#endif
-
 #include <rpmlib.h>
 #include <rpmdb.h>
 
index 7fecd2b..3bc2064 100644 (file)
@@ -4,12 +4,6 @@
 
 #include "system.h"
 
-#include "Python.h"
-#ifdef __LCLINT__
-#undef  PyObject_HEAD
-#define PyObject_HEAD   int _PyObjectHead;
-#endif
-
 #include <rpmio_internal.h>
 #include <rpmcli.h>    /* XXX for rpmCheckSig */
 #include <rpmdb.h>
index 14097ce..8671aaf 100644 (file)
@@ -4,12 +4,6 @@
 
 #include "system.h"
 
-#include "Python.h"
-#ifdef __LCLINT__
-#undef  PyObject_HEAD
-#define PyObject_HEAD   int _PyObjectHead;
-#endif
-
 #include "structmember.h"
 
 #include "rpmdebug-py.c"
index a004c07..11f5157 100644 (file)
@@ -4,12 +4,6 @@
 
 #include "system.h"
 
-#include "Python.h"
-#ifdef __LCLINT__
-#undef  PyObject_HEAD
-#define PyObject_HEAD   int _PyObjectHead;
-#endif
-
 #include <rpmlib.h>
 
 #include "header-py.h" /* XXX tagNumFromPyObject */
index 4132700..c90092d 100644 (file)
@@ -4,12 +4,6 @@
 
 #include "system.h"
 
-#include "Python.h"
-#ifdef __LCLINT__
-#undef  PyObject_HEAD
-#define PyObject_HEAD   int _PyObjectHead;
-#endif
-
 #include <rpmcli.h>
 #include <rpmpgp.h>
 #include <rpmdb.h>
diff --git a/python/system.h b/python/system.h
new file mode 100644 (file)
index 0000000..64b813a
--- /dev/null
@@ -0,0 +1,17 @@
+/** \ingroup py_c
+ * \file python/system.h
+ */
+
+#ifndef H_SYSTEM_PYTHON
+#define        H_SYSTEM_PYTHON
+
+#include "Python.h"
+
+#ifdef __LCLINT__
+#undef  PyObject_HEAD
+#define PyObject_HEAD   int _PyObjectHead;
+#endif
+
+#include "../system.h"
+
+#endif /* H_SYSTEM_PYTHON */