Replace G_BEGIN_DECLS and G_END_DECLS macros with #ifdef __cplusplus
@astavale
Submitted by Al Thomas Link to original bug (#794205)
Description
Created attachment 369507 Replace G_BEGIN_DECLS and G_END_DECLS macros with #ifdef __cplusplus
If there is a desire to generate code that is not dependant on GLib, e.g. Posix only, then this keeps the #ifdef __cplusplus extern "C" { #endif.
A small attempt to reduce the number of if..else statements in https://git.gnome.org/browse/vala/commit/?h=wip/profile-posix&id=3faa6800d542770962324ee638857a2d5fdedda9
Patch 369507, "Replace G_BEGIN_DECLS and G_END_DECLS macros with #ifdef __cplusplus":
0001-codegen-replace-G_BEGIN_DECLS-and-G_END_DECLS-with-i.patch