Properly share a variable between two source files

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23265 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2013-10-07 14:29:30 +00:00
parent b74194151f
commit 8af99a8b61
2 changed files with 3 additions and 1 deletions

View File

@ -106,6 +106,6 @@ typedef struct
} PrefsBackend;
PrefsBackend prefsbackend;
extern PrefsBackend prefsbackend;
#endif /* GNC_PREFS_P_H_ */

View File

@ -35,6 +35,8 @@ static gboolean use_compression = TRUE; // This is also the default in the pre
static gint file_retention_policy = 1; // 1 = "days", the default in the prefs backend
static gint file_retention_days = 30; // This is also the default in the prefs backend
PrefsBackend prefsbackend;
/* This static indicates the debugging module that this .o belongs to. */
static QofLogModule log_module = G_LOG_DOMAIN;