mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix build with glib2 2.67.x.
glib headers should not be included with 'extern "C"'.
This commit is contained in:
committed by
John Ralls
parent
3c9d2a2842
commit
c0f2c3ae25
@@ -37,9 +37,6 @@ extern "C"
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <errno.h>
|
||||
#include <glib.h>
|
||||
#include <glib/gstdio.h>
|
||||
|
||||
#include "qof.h"
|
||||
#include "qofquery-p.h"
|
||||
#include "qofquerycore-p.h"
|
||||
@@ -61,6 +58,10 @@ extern "C"
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gstdio.h>
|
||||
|
||||
#include <boost/regex.hpp>
|
||||
#include <string>
|
||||
#include <iomanip>
|
||||
|
||||
@@ -31,12 +31,12 @@ extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-engine.h"
|
||||
|
||||
#include "gncAddress.h"
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <sstream>
|
||||
|
||||
@@ -29,8 +29,6 @@ extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "qof.h"
|
||||
|
||||
#include "gnc-engine.h"
|
||||
@@ -42,6 +40,8 @@ extern "C"
|
||||
#endif
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
#include "gnc-sql-object-backend.hpp"
|
||||
|
||||
@@ -31,7 +31,6 @@ extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -40,6 +39,8 @@ extern "C"
|
||||
#include "gncTaxTableP.h"
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
#include "gnc-sql-object-backend.hpp"
|
||||
|
||||
@@ -31,13 +31,13 @@ extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "gnc-commodity.h"
|
||||
#include "gncEmployeeP.h"
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -31,7 +31,6 @@ extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -40,6 +39,7 @@ extern "C"
|
||||
#include "gncInvoiceP.h"
|
||||
#include "gncTaxTableP.h"
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -31,12 +31,12 @@ extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "gncJobP.h"
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -29,8 +29,6 @@ extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "qof.h"
|
||||
#include "gnc-pricedb.h"
|
||||
|
||||
@@ -38,6 +36,7 @@ extern "C"
|
||||
#include "splint-defs.h"
|
||||
#endif
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -29,8 +29,6 @@ extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "qof.h"
|
||||
#include "gnc-engine.h"
|
||||
#include "Recurrence.h"
|
||||
@@ -39,6 +37,7 @@ extern "C"
|
||||
#include "splint-defs.h"
|
||||
#endif
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
|
||||
@@ -29,8 +29,6 @@ extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "qof.h"
|
||||
#include "SchedXaction.h"
|
||||
#include "SX-book.h"
|
||||
@@ -41,6 +39,8 @@ extern "C"
|
||||
#endif
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
#include "gnc-sql-object-backend.hpp"
|
||||
|
||||
@@ -30,8 +30,6 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -41,6 +39,8 @@ extern "C"
|
||||
#include "gncTaxTableP.h"
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-sql-connection.hpp"
|
||||
#include "gnc-sql-backend.hpp"
|
||||
#include "gnc-sql-object-backend.hpp"
|
||||
|
||||
@@ -25,14 +25,14 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <AccountP.h>
|
||||
#include <Account.h>
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "sixtp.h"
|
||||
#include "sixtp-utils.h"
|
||||
|
||||
@@ -24,11 +24,11 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
|
||||
#include "sixtp.h"
|
||||
|
||||
@@ -32,9 +32,6 @@ extern "C"
|
||||
#include <config.h>
|
||||
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gi18n.h>
|
||||
#include <glib/gstdio.h>
|
||||
#include <libintl.h>
|
||||
#include <locale.h>
|
||||
#include <fcntl.h>
|
||||
@@ -76,6 +73,10 @@ extern "C"
|
||||
#endif
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gi18n.h>
|
||||
#include <glib/gstdio.h>
|
||||
|
||||
#include <gnc-backend-prov.hpp>
|
||||
#include "gnc-backend-xml.h"
|
||||
#include <qof-backend.hpp>
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -25,13 +25,13 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "qof.h"
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
|
||||
#include "sixtp.h"
|
||||
|
||||
@@ -24,12 +24,12 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "sixtp.h"
|
||||
#include "sixtp-utils.h"
|
||||
|
||||
@@ -24,13 +24,13 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <string.h>
|
||||
#include "AccountP.h"
|
||||
#include "Account.h"
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "sixtp.h"
|
||||
#include "sixtp-utils.h"
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -34,6 +32,8 @@ extern "C"
|
||||
#include "gncTaxTableP.h"
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "gnc-customer-xml-v2.h"
|
||||
#include "gnc-address-xml-v2.h"
|
||||
|
||||
@@ -24,12 +24,11 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "gncEmployeeP.h"
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "sixtp.h"
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -35,6 +33,8 @@ extern "C"
|
||||
#include "gncTaxTableP.h"
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "sixtp.h"
|
||||
#include "sixtp-utils.h"
|
||||
|
||||
@@ -25,13 +25,12 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <string.h>
|
||||
#include "qof.h"
|
||||
#include "SchedXaction.h"
|
||||
#include "FreqSpec.h"
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "sixtp.h"
|
||||
|
||||
@@ -24,14 +24,13 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "gncBillTermP.h"
|
||||
#include "gncInvoiceP.h"
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "sixtp.h"
|
||||
|
||||
@@ -24,12 +24,11 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "gncJobP.h"
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "sixtp.h"
|
||||
|
||||
@@ -25,13 +25,12 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "gnc-lot.h"
|
||||
#include "gnc-lot-p.h"
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "sixtp.h"
|
||||
|
||||
@@ -24,12 +24,11 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "gncOrderP.h"
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "sixtp.h"
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "gncCustomerP.h"
|
||||
@@ -33,6 +31,7 @@ extern "C"
|
||||
#include "gncVendorP.h"
|
||||
#include "gncEmployeeP.h"
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "sixtp.h"
|
||||
|
||||
@@ -24,12 +24,11 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <string.h>
|
||||
#include "qof.h"
|
||||
#include "Recurrence.h"
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml.h"
|
||||
#include "gnc-xml-helper.h"
|
||||
|
||||
@@ -23,12 +23,11 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "SX-book.h"
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "sixtp.h"
|
||||
|
||||
@@ -24,13 +24,12 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "gncEntry.h"
|
||||
#include "gncTaxTableP.h"
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "sixtp.h"
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <string.h>
|
||||
#include "AccountP.h"
|
||||
#include "Transaction.h"
|
||||
@@ -33,6 +31,7 @@ extern "C"
|
||||
#include "gnc-lot.h"
|
||||
#include "gnc-lot-p.h"
|
||||
}
|
||||
#include <glib.h>
|
||||
#include "gnc-xml-helper.h"
|
||||
|
||||
#include "sixtp.h"
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "gncBillTermP.h"
|
||||
@@ -33,6 +31,7 @@ extern "C"
|
||||
#include "gncTaxTableP.h"
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "sixtp.h"
|
||||
#include "sixtp-utils.h"
|
||||
|
||||
@@ -27,8 +27,6 @@ extern "C"
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <glib.h>
|
||||
#include <glib/gstdio.h>
|
||||
#include <regex.h>
|
||||
|
||||
#include <gnc-engine.h> //for GNC_MOD_BACKEND
|
||||
@@ -38,6 +36,8 @@ extern "C"
|
||||
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gstdio.h>
|
||||
#include <sstream>
|
||||
|
||||
#include "gnc-xml-backend.hpp"
|
||||
|
||||
@@ -21,10 +21,7 @@
|
||||
* Boston, MA 02110-1301, USA gnu@gnu.org *
|
||||
* *
|
||||
\********************************************************************/
|
||||
extern "C"
|
||||
{
|
||||
#include <glib.h>
|
||||
}
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
|
||||
|
||||
@@ -24,6 +24,9 @@
|
||||
|
||||
#ifndef GNC_XML_HELPER_H
|
||||
#define GNC_XML_HELPER_H
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <libxml/xmlversion.h>
|
||||
|
||||
@@ -41,9 +41,6 @@ extern "C"
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gi18n.h>
|
||||
#include <glib/gstdio.h>
|
||||
#include "gnc-engine.h"
|
||||
#include "Scrub.h"
|
||||
#include "TransLog.h"
|
||||
@@ -53,6 +50,9 @@ extern "C"
|
||||
#endif
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gi18n.h>
|
||||
#include <glib/gstdio.h>
|
||||
#include "sixtp.h"
|
||||
|
||||
#include "gnc-xml.h"
|
||||
|
||||
@@ -24,10 +24,8 @@
|
||||
|
||||
#ifndef IO_GNCXML_GEN_H
|
||||
#define IO_GNCXML_GEN_H
|
||||
extern "C"
|
||||
{
|
||||
|
||||
#include <glib.h>
|
||||
}
|
||||
|
||||
#include "sixtp.h"
|
||||
|
||||
|
||||
@@ -36,8 +36,6 @@ extern "C"
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#include <glib.h>
|
||||
#include <glib/gstdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
@@ -66,6 +64,9 @@ extern "C"
|
||||
#endif
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gstdio.h>
|
||||
|
||||
#include "gnc-xml-backend.hpp"
|
||||
#include "sixtp-parsers.h"
|
||||
#include "sixtp-utils.h"
|
||||
|
||||
@@ -26,9 +26,9 @@ extern "C"
|
||||
#include <config.h>
|
||||
|
||||
#include <stdio.h>
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
}
|
||||
|
||||
#include "gnc-xml.h"
|
||||
#include "io-utils.h"
|
||||
|
||||
@@ -25,10 +25,10 @@ extern "C"
|
||||
#define __EXTENSIONS__
|
||||
|
||||
#include <config.h>
|
||||
#include <glib.h>
|
||||
|
||||
#include <gnc-date.h>
|
||||
}
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "sixtp-dom-generators.h"
|
||||
|
||||
@@ -24,13 +24,13 @@ extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include <gnc-engine.h>
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "sixtp-utils.h"
|
||||
#include "sixtp-dom-parsers.h"
|
||||
#include <kvp-frame.hpp>
|
||||
|
||||
@@ -23,12 +23,11 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include <ctype.h>
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "sixtp-parsers.h"
|
||||
#include "sixtp-utils.h"
|
||||
#include "sixtp.h"
|
||||
|
||||
@@ -23,9 +23,6 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gstdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <stdarg.h>
|
||||
@@ -37,6 +34,9 @@ extern "C"
|
||||
#endif
|
||||
}
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gstdio.h>
|
||||
|
||||
#include "sixtp.h"
|
||||
#include "sixtp-parsers.h"
|
||||
#include "sixtp-stack.h"
|
||||
|
||||
@@ -25,12 +25,12 @@
|
||||
#define SIXTP_H
|
||||
extern "C"
|
||||
{
|
||||
#include <glib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <stdarg.h>
|
||||
#include "gnc-engine.h"
|
||||
}
|
||||
#include <glib.h>
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "gnc-backend-xml.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user