Bug 798156 - glib 2.68.0 breaks gnucash

Move all of the #include <glib> to before the extern "C" blocks
so that the include guards will protect against headers inside
the extern "C" block also including glib.h.
pull/977/head
John Ralls 5 years ago
parent 40e005d963
commit bbb4113a5a

@ -23,6 +23,10 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#include <glib.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
extern "C"
{
#include <config.h>
@ -50,9 +54,6 @@ extern "C"
#endif
}
#include <glib.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#include <gnc-locale-utils.hpp>
#include <boost/locale.hpp>
#include <string>

@ -21,6 +21,9 @@
* *
\********************************************************************/
#include <glib.h>
#include <glib/gi18n.h>
extern "C" {
#include <platform.h>
#if PLATFORM(WINDOWS)
@ -31,9 +34,6 @@ extern "C" {
#include "gnc-ui-util.h"
}
#include <glib.h>
#include <glib/gi18n.h>
#include <exception>
#include <map>
#include <string>

@ -20,6 +20,9 @@
* *
\********************************************************************/
#include <glib.h>
#include <glib/gi18n.h>
extern "C" {
#include <platform.h>
#if PLATFORM(WINDOWS)
@ -37,9 +40,6 @@ extern "C" {
}
#include <glib.h>
#include <glib/gi18n.h>
#include <algorithm>
#include <exception>
#include <map>

@ -25,6 +25,9 @@
* This file implements the top-level QofBackend API for saving/
* restoring data to/from an SQL db using libdbi
*/
#include <glib.h>
#include <glib/gstdio.h>
extern "C"
{
#include "config.h"
@ -59,9 +62,6 @@ extern "C"
}
#include <glib.h>
#include <glib/gstdio.h>
#include <boost/regex.hpp>
#include <string>
#include <iomanip>

@ -27,6 +27,8 @@
* This file implements the top-level QofBackend API for saving/
* restoring data to/from an SQL database
*/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -35,8 +37,6 @@ extern "C"
#include "gncAddress.h"
}
#include <glib.h>
#include <cstdlib>
#include <cstring>
#include <sstream>

@ -25,6 +25,8 @@
* This file implements the top-level QofBackend API for saving/
* restoring data to/from an SQL db
*/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -40,8 +42,6 @@ extern "C"
#endif
}
#include <glib.h>
#include "gnc-sql-connection.hpp"
#include "gnc-sql-backend.hpp"
#include "gnc-sql-object-backend.hpp"

@ -27,6 +27,8 @@
* This file implements the top-level QofBackend API for saving/
* restoring data to/from an SQL database
*/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -39,8 +41,6 @@ extern "C"
#include "gncTaxTableP.h"
}
#include <glib.h>
#include "gnc-sql-connection.hpp"
#include "gnc-sql-backend.hpp"
#include "gnc-sql-object-backend.hpp"

@ -27,6 +27,8 @@
* This file implements the top-level QofBackend API for saving/
* restoring data to/from an SQL database
*/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -37,7 +39,6 @@ extern "C"
#include "gnc-commodity.h"
#include "gncEmployeeP.h"
}
#include <glib.h>
#include "gnc-sql-connection.hpp"
#include "gnc-sql-backend.hpp"

@ -27,6 +27,8 @@
* This file implements the top-level QofBackend API for saving/
* restoring data to/from an SQL database
*/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -39,7 +41,6 @@ extern "C"
#include "gncInvoiceP.h"
#include "gncTaxTableP.h"
}
#include <glib.h>
#include "gnc-sql-connection.hpp"
#include "gnc-sql-backend.hpp"

@ -27,6 +27,8 @@
* This file implements the top-level QofBackend API for saving/
* restoring data to/from an SQL database
*/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -36,7 +38,6 @@ extern "C"
#include "gncJobP.h"
}
#include <glib.h>
#include "gnc-sql-connection.hpp"
#include "gnc-sql-backend.hpp"

@ -25,6 +25,8 @@
* This file implements the top-level QofBackend API for saving/
* restoring data to/from an SQL db
*/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -36,7 +38,6 @@ extern "C"
#include "splint-defs.h"
#endif
}
#include <glib.h>
#include "gnc-sql-connection.hpp"
#include "gnc-sql-backend.hpp"

@ -25,6 +25,8 @@
* This file implements the top-level QofBackend API for saving/
* restoring data to/from an SQL db
*/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -37,7 +39,6 @@ extern "C"
#include "splint-defs.h"
#endif
}
#include <glib.h>
#include "gnc-sql-connection.hpp"
#include "gnc-sql-backend.hpp"

@ -25,6 +25,8 @@
* This file implements the top-level QofBackend API for saving/
* restoring data to/from an SQL db
*/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -39,8 +41,6 @@ extern "C"
#endif
}
#include <glib.h>
#include "gnc-sql-connection.hpp"
#include "gnc-sql-backend.hpp"
#include "gnc-sql-object-backend.hpp"

@ -27,6 +27,8 @@
* This file implements the top-level QofBackend API for saving/
* restoring data to/from an SQL database
*/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -39,8 +41,6 @@ extern "C"
#include "gncTaxTableP.h"
}
#include <glib.h>
#include "gnc-sql-connection.hpp"
#include "gnc-sql-backend.hpp"
#include "gnc-sql-object-backend.hpp"

@ -22,6 +22,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -31,8 +33,6 @@ extern "C"
#include <Account.h>
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp.h"
#include "sixtp-utils.h"

@ -21,13 +21,14 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
#include <stdlib.h>
#include <string.h>
}
#include <glib.h>
#include "gnc-xml-helper.h"

@ -27,6 +27,10 @@
* This file implements the top-level QofBackend API for saving/
* restoring data to/from an ordinary Unix filesystem file.
*/
#include <glib.h>
#include <glib/gi18n.h>
#include <glib/gstdio.h>
extern "C"
{
#include <config.h>
@ -73,10 +77,6 @@ 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>

@ -22,6 +22,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -30,8 +32,6 @@ extern "C"
#include "qof.h"
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp.h"

@ -20,6 +20,7 @@
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
* Boston, MA 02110-1301, USA gnu@gnu.org
*/
#include <glib.h>
extern "C"
{
@ -28,8 +29,6 @@ extern "C"
#include <string.h>
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp.h"
#include "sixtp-utils.h"

@ -21,6 +21,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -29,8 +31,6 @@ extern "C"
#include "Account.h"
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp.h"
#include "sixtp-utils.h"

@ -21,6 +21,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -32,8 +34,6 @@ 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"

@ -21,6 +21,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -28,8 +30,6 @@ extern "C"
#include <string.h>
#include "gncEmployeeP.h"
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp.h"
#include "sixtp-utils.h"

@ -21,6 +21,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -33,8 +35,6 @@ extern "C"
#include "gncTaxTableP.h"
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp.h"
#include "sixtp-utils.h"

@ -22,6 +22,8 @@
* *
*******************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -30,7 +32,6 @@ extern "C"
#include "SchedXaction.h"
#include "FreqSpec.h"
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp.h"

@ -21,6 +21,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -30,7 +32,6 @@ extern "C"
#include "gncBillTermP.h"
#include "gncInvoiceP.h"
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp.h"

@ -21,6 +21,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -28,7 +30,6 @@ extern "C"
#include <string.h>
#include "gncJobP.h"
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp.h"

@ -22,6 +22,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -30,7 +32,6 @@ extern "C"
#include "gnc-lot.h"
#include "gnc-lot-p.h"
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp.h"

@ -21,6 +21,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -28,7 +30,6 @@ extern "C"
#include <string.h>
#include "gncOrderP.h"
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp.h"

@ -21,6 +21,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -31,7 +33,6 @@ extern "C"
#include "gncVendorP.h"
#include "gncEmployeeP.h"
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp.h"

@ -20,6 +20,7 @@
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
* Boston, MA 02110-1301, USA gnu@gnu.org
*/
#include <glib.h>
extern "C"
{
@ -28,7 +29,6 @@ extern "C"
#include "qof.h"
#include "Recurrence.h"
}
#include <glib.h>
#include "gnc-xml.h"
#include "gnc-xml-helper.h"

@ -20,6 +20,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
*******************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -27,7 +29,6 @@ extern "C"
#include "SX-book.h"
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp.h"

@ -21,6 +21,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -29,7 +31,6 @@ extern "C"
#include "gncEntry.h"
#include "gncTaxTableP.h"
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp.h"

@ -21,6 +21,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
*******************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -31,7 +33,7 @@ extern "C"
#include "gnc-lot.h"
#include "gnc-lot-p.h"
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp.h"

@ -21,6 +21,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -31,7 +33,6 @@ extern "C"
#include "gncTaxTableP.h"
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp.h"
#include "sixtp-utils.h"

@ -14,6 +14,8 @@
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#include <glib.h>
#include <glib/gstdio.h>
extern "C"
{
@ -36,8 +38,6 @@ extern "C"
}
#include <glib.h>
#include <glib/gstdio.h>
#include <sstream>
#include "gnc-xml-backend.hpp"

@ -21,6 +21,10 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#include <glib.h>
#include <glib/gi18n.h>
#include <glib/gstdio.h>
extern "C"
{
#include <config.h>
@ -50,9 +54,6 @@ extern "C"
#endif
}
#include <glib.h>
#include <glib/gi18n.h>
#include <glib/gstdio.h>
#include "sixtp.h"
#include "gnc-xml.h"

@ -18,6 +18,9 @@
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#include <glib.h>
#include <glib/gstdio.h>
extern "C"
{
#include <config.h>
@ -64,9 +67,6 @@ extern "C"
#endif
}
#include <glib.h>
#include <glib/gstdio.h>
#include "gnc-xml-backend.hpp"
#include "sixtp-parsers.h"
#include "sixtp-utils.h"

@ -21,6 +21,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -28,8 +30,6 @@ extern "C"
#include <stdio.h>
}
#include <glib.h>
#include "gnc-xml.h"
#include "io-utils.h"
#include "sixtp.h"

@ -20,6 +20,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
********************************************************************/
#include <glib.h>
extern "C"
{
#define __EXTENSIONS__
@ -28,7 +30,6 @@ extern "C"
#include <gnc-date.h>
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp-dom-generators.h"

@ -20,6 +20,8 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
********************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -29,7 +31,6 @@ extern "C"
#include <gnc-engine.h>
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "sixtp-utils.h"
#include "sixtp-dom-parsers.h"

@ -20,6 +20,9 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
********************************************************************/
#include <glib.h>
#include <glib/gstdio.h>
extern "C"
{
#include <config.h>
@ -34,9 +37,6 @@ extern "C"
#endif
}
#include <glib.h>
#include <glib/gstdio.h>
#include "sixtp.h"
#include "sixtp-parsers.h"
#include "sixtp-stack.h"

@ -23,6 +23,9 @@
#ifndef SIXTP_H
#define SIXTP_H
#include <glib.h>
extern "C"
{
#include <stdio.h>
@ -30,7 +33,7 @@ extern "C"
#include <stdarg.h>
#include "gnc-engine.h"
}
#include <glib.h>
#include "gnc-xml-helper.h"
#include "gnc-backend-xml.h"

@ -22,6 +22,8 @@
* *
*******************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
@ -34,7 +36,6 @@ extern "C"
#include "qof.h"
}
#include <glib.h>
#include <stdint.h>
#include <boost/regex.hpp>
#include <boost/locale/encoding_utf.hpp>

@ -25,6 +25,7 @@
* Author: Linas Vepstas (linas@linas.org) *
* Author: Phil Longstaff (phil.longstaff@yahoo.ca) *
\********************************************************************/
#include <glib.h>
extern "C"
{
@ -36,8 +37,6 @@ extern "C"
#include "qof.h"
}
#include <glib.h>
/* Uncomment if you need to log anything.
static QofLogModule log_module = QOF_MOD_UTIL;
*/

@ -32,6 +32,7 @@
* Copyright (c) 2000 Dave Peticolas
* Copyright (c) 2007 David Hampton <hampton@employees.org>
*/
#include <glib.h>
extern "C"
{
@ -49,7 +50,6 @@ extern "C"
}
#include <glib.h>
#include "qof.h"
#include "qofevent-p.h"
#include "qofbackend.h"

@ -22,13 +22,14 @@
* *
\********************************************************************/
#include <glib.h>
extern "C"
{
#include <config.h>
#include <string.h>
}
#include <glib.h>
#include "qof.h"
#include "qofid-p.h"
#include "qofinstance-p.h"

@ -24,6 +24,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
*/
#include <glib.h>
#include <glib/gstdio.h>
extern "C"
{
@ -48,8 +50,6 @@ extern "C"
}
#include <glib.h>
#include <glib/gstdio.h>
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "qof.log"
#include "qof.h"

@ -20,6 +20,7 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#include <glib.h>
extern "C"
{
@ -31,7 +32,6 @@ extern "C"
#include <string.h>
}
#include <glib.h>
#include "qof.h"
#include "qof-backend.hpp"
#include "qofbook-p.h"

@ -31,6 +31,7 @@
@author Copyright (c) 2005 Neil Williams <linux@codehelp.co.uk>
@author Copyright (c) 2016 Aaron Laws
*/
#include <glib.h>
extern "C"
{
@ -54,7 +55,6 @@ extern "C"
static QofLogModule log_module = QOF_MOD_SESSION;
} //extern 'C'
#include <glib.h>
#include "qofbook-p.h"
#include "qof-backend.hpp"
#include "qofsession.hpp"

Loading…
Cancel
Save