Win32: Undefine G_MODULE_EXPORT in our internal libraries. Please do not use it.

The rest of gnucash relies on *everything* being exported.  This is done by
mingw's linker, but only if no symbol at all was marked as being exported.
As soon as at least one symbol is manually marked as export, nothing except
those marked symbols are exported, which will immediately lead to
"unresolved symbols" in the win32 build.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20593 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2011-04-23 18:58:43 +00:00
parent 4f94dd4b5c
commit 98f5a13059
2 changed files with 20 additions and 0 deletions

View File

@ -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,

View File

@ -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,