common/dconf-changeset.h etc. lack extern "C" wrapper for C++
@stbergmann
Submitted by stbergmann Assigned to dco..@..e.bugs
Link to original bug (#754245)
Description
Somewhat unexpectedly, common/dconf-changeset.h etc. (as included from dconf/dconf.h) lack the usual
#ifdef __cplusplus extern "C" { #endif ...
wrappers, so naively doing
#include <dconf/dconf.h> ... dconf_changeset_new();
in C++ code will lead to linker errors about an undefined reference to a (mangled name) dconf_changeset_new C++ function.
This is apparently not a problem for the functions decleared in dconf-client.h, presumably because G_BEGIN/END_DECLS covers those extern "C" wrappers for C++.
Version: git master