[pygobject] Remove usage of HAVE_CONFIG_H



commit c63cebf790286aa9c669c5ff4d20eecfa3951a33
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Wed Mar 21 11:04:46 2018 +0100

    Remove usage of HAVE_CONFIG_H
    
    We always build with config.h

 gi/gobjectmodule.c    | 4 +---
 gi/pygboxed.c         | 4 +---
 gi/pygenum.c          | 4 +---
 gi/pygflags.c         | 4 +---
 gi/pygi-foreign.c     | 4 +---
 gi/pyginterface.c     | 4 +---
 gi/pyglib.c           | 4 +---
 gi/pygobject-object.c | 4 +---
 gi/pygoptioncontext.c | 4 +---
 gi/pygoptiongroup.c   | 4 +---
 gi/pygparamspec.c     | 4 +---
 gi/pygpointer.c       | 4 +---
 gi/pygtype.c          | 4 +---
 setup.py              | 2 --
 14 files changed, 13 insertions(+), 41 deletions(-)
---
diff --git a/gi/gobjectmodule.c b/gi/gobjectmodule.c
index 3b2be53a..5d89dcb7 100644
--- a/gi/gobjectmodule.c
+++ b/gi/gobjectmodule.c
@@ -18,9 +18,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
+#include <config.h>
 
 #include <Python.h>
 #include <gobject/gvaluecollector.h>
diff --git a/gi/pygboxed.c b/gi/pygboxed.c
index e521c969..a899bfbb 100644
--- a/gi/pygboxed.c
+++ b/gi/pygboxed.c
@@ -18,9 +18,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
+#include <config.h>
 
 #include <Python.h>
 #include <glib-object.h>
diff --git a/gi/pygenum.c b/gi/pygenum.c
index 6897d53b..b9eb5447 100644
--- a/gi/pygenum.c
+++ b/gi/pygenum.c
@@ -19,9 +19,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
+#include <config.h>
 
 #include <pyglib.h>
 #include "pyglib-python-compat.h"
diff --git a/gi/pygflags.c b/gi/pygflags.c
index d286a986..7220b939 100644
--- a/gi/pygflags.c
+++ b/gi/pygflags.c
@@ -19,9 +19,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
+#include <config.h>
 
 #include <pyglib.h>
 #include "pygi-type.h"
diff --git a/gi/pygi-foreign.c b/gi/pygi-foreign.c
index 84af1ec3..88b2e6f1 100644
--- a/gi/pygi-foreign.c
+++ b/gi/pygi-foreign.c
@@ -22,9 +22,7 @@
  * IN THE SOFTWARE.
  */
 
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
+#include <config.h>
 
 #include "pygobject-internal.h"
 #include "pygi-foreign.h"
diff --git a/gi/pyginterface.c b/gi/pyginterface.c
index 1737de5a..a95233a9 100644
--- a/gi/pyginterface.c
+++ b/gi/pyginterface.c
@@ -18,9 +18,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
+#include <config.h>
 
 #include <Python.h>
 #include <glib-object.h>
diff --git a/gi/pyglib.c b/gi/pyglib.c
index d21ba4d0..0a6319e3 100644
--- a/gi/pyglib.c
+++ b/gi/pyglib.c
@@ -17,9 +17,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
+#include <config.h>
 
 #include <Python.h>
 #include <pythread.h>
diff --git a/gi/pygobject-object.c b/gi/pygobject-object.c
index ff15492b..113ffbf0 100644
--- a/gi/pygobject-object.c
+++ b/gi/pygobject-object.c
@@ -18,9 +18,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
+#include <config.h>
 
 #include <pyglib.h>
 #include "pygobject-object.h"
diff --git a/gi/pygoptioncontext.c b/gi/pygoptioncontext.c
index 50c32fbe..71584562 100644
--- a/gi/pygoptioncontext.c
+++ b/gi/pygoptioncontext.c
@@ -18,9 +18,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
+#include <config.h>
 
 #include <pyglib.h>
 #include "pygoptioncontext.h"
diff --git a/gi/pygoptiongroup.c b/gi/pygoptiongroup.c
index e91ca05a..9c3168c1 100644
--- a/gi/pygoptiongroup.c
+++ b/gi/pygoptiongroup.c
@@ -18,9 +18,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
+#include <config.h>
 
 #include <pyglib.h>
 #include "pygoptiongroup.h"
diff --git a/gi/pygparamspec.c b/gi/pygparamspec.c
index 4ace96c4..94e1b241 100644
--- a/gi/pygparamspec.c
+++ b/gi/pygparamspec.c
@@ -19,9 +19,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
+#include <config.h>
 
 #include <pyglib.h>
 #include <glib-object.h>
diff --git a/gi/pygpointer.c b/gi/pygpointer.c
index dccd3037..19e0f035 100644
--- a/gi/pygpointer.c
+++ b/gi/pygpointer.c
@@ -18,9 +18,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
+#include <config.h>
 
 #include <pyglib.h>
 #include <glib-object.h>
diff --git a/gi/pygtype.c b/gi/pygtype.c
index 760af56a..7ef59730 100644
--- a/gi/pygtype.c
+++ b/gi/pygtype.c
@@ -18,9 +18,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
+#include <config.h>
 
 #include <pyglib.h>
 
diff --git a/setup.py b/setup.py
index e7edfe6d..12b385b9 100755
--- a/setup.py
+++ b/setup.py
@@ -951,14 +951,12 @@ def main():
         name='gi._gi',
         sources=sources,
         include_dirs=[script_dir, gi_dir],
-        define_macros=[("HAVE_CONFIG_H", None)],
     )
 
     gi_cairo_ext = Extension(
         name='gi._gi_cairo',
         sources=cairo_sources,
         include_dirs=[script_dir, gi_dir],
-        define_macros=[("HAVE_CONFIG_H", None)],
     )
 
     setup(


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]