Use internal extern "C" { ... } for C++

- removes warnings compiling swig engine
...
[ 10%] Generating swig-engine.cpp
.../libgnucash/engine/engine-helpers.h:31: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/gnc-date.h:83: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/qofquery.h:90: Warning 302: Identifier 'QofQuery' redefined (ignored),
.../libgnucash/engine/gnc-option.hpp:55: Warning 302: previous definition of 'QofQuery'.
.../libgnucash/engine/gnc-commodity.h:56: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/gncBusiness.h:40: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/gncEntry.h:37: Warning 313: Unrecognized extern type "C++".
This commit is contained in:
Richard Cohen
2023-01-23 13:57:38 +00:00
parent 062f3fb19d
commit 1cec0cb3f3
319 changed files with 861 additions and 712 deletions

View File

@@ -31,7 +31,6 @@
#include <glib/gprintf.h>
#include <glib/gstdio.h>
extern "C" {
#include <config.h>
#include <platform.h>
@@ -63,7 +62,6 @@ extern "C" {
#ifdef MAC_INTEGRATION
#include <Foundation/Foundation.h>
#endif
}
#include "gnc-locale-utils.hpp"
#include <boost/filesystem.hpp>