diff --git a/src/gnome-utils/dialog-account.c b/src/gnome-utils/dialog-account.c index 5bfd04b8ec..f263f66661 100644 --- a/src/gnome-utils/dialog-account.c +++ b/src/gnome-utils/dialog-account.c @@ -56,6 +56,16 @@ #define GCONF_SECTION "dialogs/account" #define DEFAULT_COLOR "#ededececebeb" +#ifdef G_MODULE_EXPORT +/* No separate marking of functions as "DLL export", please: The rest + * of gnucash relies on *everything* being exported. As soon as at + * least one function is manually marked as export, nothing except + * those marked functions are exported, which will break the build on + * Windows. */ +# undef G_MODULE_EXPORT +# define G_MODULE_EXPORT +#endif + enum account_cols { ACCOUNT_COL_FULLNAME = 0, diff --git a/src/gnome/assistant-hierarchy.c b/src/gnome/assistant-hierarchy.c index d52959574e..1ee424f2f8 100644 --- a/src/gnome/assistant-hierarchy.c +++ b/src/gnome/assistant-hierarchy.c @@ -57,6 +57,16 @@ static QofLogModule log_module = GNC_MOD_IMPORT; #define GCONF_SECTION "dialogs/new_hierarchy" +#ifdef G_MODULE_EXPORT +/* No separate marking of functions as "DLL export", please: The rest + * of gnucash relies on *everything* being exported. As soon as at + * least one function is manually marked as export, nothing except + * those marked functions are exported, which will break the build on + * Windows. */ +# undef G_MODULE_EXPORT +# define G_MODULE_EXPORT +#endif + typedef enum { COL_CHECKED,