From 5c72f41a11b52d5840cab461d2e73e150d829e94 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Fri, 27 May 2022 18:35:26 +0200 Subject: Keep only one definition of _PyGObject_API. --- plugins/pychrysalide/Makefile.am | 2 +- plugins/pychrysalide/analysis/Makefile.am | 2 +- plugins/pychrysalide/analysis/contents/Makefile.am | 2 +- plugins/pychrysalide/analysis/db/Makefile.am | 2 +- plugins/pychrysalide/analysis/db/items/Makefile.am | 2 +- plugins/pychrysalide/analysis/disass/Makefile.am | 2 +- plugins/pychrysalide/analysis/storage/Makefile.am | 2 +- plugins/pychrysalide/analysis/types/Makefile.am | 2 +- plugins/pychrysalide/arch/Makefile.am | 2 +- plugins/pychrysalide/arch/instructions/Makefile.am | 2 +- plugins/pychrysalide/arch/operands/Makefile.am | 2 +- plugins/pychrysalide/common/Makefile.am | 2 +- plugins/pychrysalide/core.c | 6 +++++- plugins/pychrysalide/core/Makefile.am | 2 +- plugins/pychrysalide/debug/Makefile.am | 2 +- plugins/pychrysalide/format/Makefile.am | 2 +- plugins/pychrysalide/glibext/Makefile.am | 2 +- plugins/pychrysalide/gtkext/Makefile.am | 2 +- plugins/pychrysalide/gtkext/graph/Makefile.am | 2 +- plugins/pychrysalide/gui/Makefile.am | 2 +- plugins/pychrysalide/gui/core/Makefile.am | 2 +- plugins/pychrysalide/gui/panels/Makefile.am | 2 +- plugins/pychrysalide/mangling/Makefile.am | 2 +- plugins/pychrysalide/plugins/Makefile.am | 2 +- 24 files changed, 28 insertions(+), 24 deletions(-) diff --git a/plugins/pychrysalide/Makefile.am b/plugins/pychrysalide/Makefile.am index fb3986c..ad33552 100644 --- a/plugins/pychrysalide/Makefile.am +++ b/plugins/pychrysalide/Makefile.am @@ -49,7 +49,7 @@ dev_HEADERS = $(pychrysalide_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/analysis/Makefile.am b/plugins/pychrysalide/analysis/Makefile.am index d09cced..0f95a1f 100644 --- a/plugins/pychrysalide/analysis/Makefile.am +++ b/plugins/pychrysalide/analysis/Makefile.am @@ -31,7 +31,7 @@ dev_HEADERS = $(libpychrysaanalysis_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/analysis/contents/Makefile.am b/plugins/pychrysalide/analysis/contents/Makefile.am index 07fafd0..ba06c17 100644 --- a/plugins/pychrysalide/analysis/contents/Makefile.am +++ b/plugins/pychrysalide/analysis/contents/Makefile.am @@ -17,6 +17,6 @@ dev_HEADERS = $(libpychrysaanalysiscontents_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/analysis/db/Makefile.am b/plugins/pychrysalide/analysis/db/Makefile.am index 721f5b6..4e882f8 100644 --- a/plugins/pychrysalide/analysis/db/Makefile.am +++ b/plugins/pychrysalide/analysis/db/Makefile.am @@ -24,7 +24,7 @@ dev_HEADERS = $(libpychrysaanalysisdb_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/analysis/db/items/Makefile.am b/plugins/pychrysalide/analysis/db/items/Makefile.am index 80f9756..5c8dc30 100644 --- a/plugins/pychrysalide/analysis/db/items/Makefile.am +++ b/plugins/pychrysalide/analysis/db/items/Makefile.am @@ -17,6 +17,6 @@ dev_HEADERS = $(libpychrysaanalysisdbitems_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/analysis/disass/Makefile.am b/plugins/pychrysalide/analysis/disass/Makefile.am index 0dacc15..9425570 100644 --- a/plugins/pychrysalide/analysis/disass/Makefile.am +++ b/plugins/pychrysalide/analysis/disass/Makefile.am @@ -14,7 +14,7 @@ dev_HEADERS = $(libpychrysaanalysisdisass_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/analysis/storage/Makefile.am b/plugins/pychrysalide/analysis/storage/Makefile.am index 01240cb..f96ce08 100644 --- a/plugins/pychrysalide/analysis/storage/Makefile.am +++ b/plugins/pychrysalide/analysis/storage/Makefile.am @@ -20,7 +20,7 @@ dev_HEADERS = $(libpychrysaanalysisstorage_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/analysis/types/Makefile.am b/plugins/pychrysalide/analysis/types/Makefile.am index 8f1799f..181503b 100644 --- a/plugins/pychrysalide/analysis/types/Makefile.am +++ b/plugins/pychrysalide/analysis/types/Makefile.am @@ -23,7 +23,7 @@ dev_HEADERS = $(libpychrysaanalysistypes_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/arch/Makefile.am b/plugins/pychrysalide/arch/Makefile.am index ab4ca23..a908a73 100644 --- a/plugins/pychrysalide/arch/Makefile.am +++ b/plugins/pychrysalide/arch/Makefile.am @@ -25,7 +25,7 @@ dev_HEADERS = $(libpychrysaarch_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/arch/instructions/Makefile.am b/plugins/pychrysalide/arch/instructions/Makefile.am index 4c36acf..d21a746 100644 --- a/plugins/pychrysalide/arch/instructions/Makefile.am +++ b/plugins/pychrysalide/arch/instructions/Makefile.am @@ -18,7 +18,7 @@ dev_HEADERS = $(libpychrysaarchinstructions_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/arch/operands/Makefile.am b/plugins/pychrysalide/arch/operands/Makefile.am index cf00ce2..91d0131 100644 --- a/plugins/pychrysalide/arch/operands/Makefile.am +++ b/plugins/pychrysalide/arch/operands/Makefile.am @@ -24,7 +24,7 @@ dev_HEADERS = $(libpychrysaarchoperands_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/common/Makefile.am b/plugins/pychrysalide/common/Makefile.am index 1fb268d..e628a4c 100644 --- a/plugins/pychrysalide/common/Makefile.am +++ b/plugins/pychrysalide/common/Makefile.am @@ -20,6 +20,6 @@ dev_HEADERS = $(libpychrysacommon_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/core.c b/plugins/pychrysalide/core.c index 401aa33..89c4da4 100644 --- a/plugins/pychrysalide/core.c +++ b/plugins/pychrysalide/core.c @@ -21,9 +21,13 @@ */ -#include "core.h" +#undef NO_IMPORT_PYGOBJECT +#include +#define NO_IMPORT_PYGOBJECT +#include "core.h" + #include #include diff --git a/plugins/pychrysalide/core/Makefile.am b/plugins/pychrysalide/core/Makefile.am index 6c032c3..cdb5b6c 100644 --- a/plugins/pychrysalide/core/Makefile.am +++ b/plugins/pychrysalide/core/Makefile.am @@ -20,6 +20,6 @@ dev_HEADERS = $(libpychrysacore_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/debug/Makefile.am b/plugins/pychrysalide/debug/Makefile.am index 4bd8e78..35d65ec 100644 --- a/plugins/pychrysalide/debug/Makefile.am +++ b/plugins/pychrysalide/debug/Makefile.am @@ -16,7 +16,7 @@ dev_HEADERS = $(libpychrysadebug_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/format/Makefile.am b/plugins/pychrysalide/format/Makefile.am index 68eb3be..3bf3cef 100644 --- a/plugins/pychrysalide/format/Makefile.am +++ b/plugins/pychrysalide/format/Makefile.am @@ -23,7 +23,7 @@ dev_HEADERS = $(libpychrysaformat_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/glibext/Makefile.am b/plugins/pychrysalide/glibext/Makefile.am index cfed869..ef4fd5c 100644 --- a/plugins/pychrysalide/glibext/Makefile.am +++ b/plugins/pychrysalide/glibext/Makefile.am @@ -25,6 +25,6 @@ dev_HEADERS = $(libpychrysaglibext_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/gtkext/Makefile.am b/plugins/pychrysalide/gtkext/Makefile.am index 77cce65..9126d78 100644 --- a/plugins/pychrysalide/gtkext/Makefile.am +++ b/plugins/pychrysalide/gtkext/Makefile.am @@ -22,7 +22,7 @@ dev_HEADERS = $(libpychrysagtkext_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/gtkext/graph/Makefile.am b/plugins/pychrysalide/gtkext/graph/Makefile.am index 7e9b5e5..46de716 100644 --- a/plugins/pychrysalide/gtkext/graph/Makefile.am +++ b/plugins/pychrysalide/gtkext/graph/Makefile.am @@ -16,6 +16,6 @@ dev_HEADERS = $(libpychrysagtkextgraph_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/gui/Makefile.am b/plugins/pychrysalide/gui/Makefile.am index 360f7ff..319ea99 100644 --- a/plugins/pychrysalide/gui/Makefile.am +++ b/plugins/pychrysalide/gui/Makefile.am @@ -21,7 +21,7 @@ dev_HEADERS = $(libpychrysagui_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/gui/core/Makefile.am b/plugins/pychrysalide/gui/core/Makefile.am index 02f3596..844d62c 100644 --- a/plugins/pychrysalide/gui/core/Makefile.am +++ b/plugins/pychrysalide/gui/core/Makefile.am @@ -16,6 +16,6 @@ dev_HEADERS = $(libpychrysaguicore_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/gui/panels/Makefile.am b/plugins/pychrysalide/gui/panels/Makefile.am index 9585ec4..4891bcf 100644 --- a/plugins/pychrysalide/gui/panels/Makefile.am +++ b/plugins/pychrysalide/gui/panels/Makefile.am @@ -14,6 +14,6 @@ dev_HEADERS = $(libpychrysaguipanels_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/mangling/Makefile.am b/plugins/pychrysalide/mangling/Makefile.am index bec4baf..3e0bfe1 100644 --- a/plugins/pychrysalide/mangling/Makefile.am +++ b/plugins/pychrysalide/mangling/Makefile.am @@ -16,7 +16,7 @@ dev_HEADERS = $(libpychrysamangling_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) diff --git a/plugins/pychrysalide/plugins/Makefile.am b/plugins/pychrysalide/plugins/Makefile.am index 8a0d4c9..5666cac 100644 --- a/plugins/pychrysalide/plugins/Makefile.am +++ b/plugins/pychrysalide/plugins/Makefile.am @@ -18,7 +18,7 @@ dev_HEADERS = $(libpychrysaplugins_la_SOURCES:%c=) AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \ - -I$(top_srcdir)/src + -I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) -- cgit v0.11.2-87-g4458