gnucash maint: Use the Mac Locale to find the account templates only when building with quartz.
John Ralls
jralls at code.gnucash.org
Mon Apr 10 18:27:15 EDT 2017
Updated via https://github.com/Gnucash/gnucash/commit/aa6854fb (commit)
from https://github.com/Gnucash/gnucash/commit/ce83251b (commit)
commit aa6854fb1b9d7bc6847d6d43e734a7144c23afef
Author: John Ralls <jralls at ceridwen.us>
Date: Mon Apr 10 15:23:25 2017 -0700
Use the Mac Locale to find the account templates only when building with quartz.
diff --git a/src/gnome/assistant-hierarchy.c b/src/gnome/assistant-hierarchy.c
index 7415d0a..f23b174 100644
--- a/src/gnome/assistant-hierarchy.c
+++ b/src/gnome/assistant-hierarchy.c
@@ -31,7 +31,7 @@
#include <sys/types.h>
#include <unistd.h>
-#ifdef PLATFORM_OSX
+#ifdef MAC_INTEGRATION
#include <Foundation/Foundation.h>
#endif
@@ -186,7 +186,7 @@ set_final_balance (GHashTable *hash, Account *account, gnc_numeric in_balance)
g_hash_table_insert (hash, account, balance);
}
-#ifdef PLATFORM_OSX
+#ifdef MAC_INTEGRATION
/* Repeat retrieving the locale from defaults in case it was overridden in
* gnucash-bin because it wasn't a supported POSIX locale.
*/
@@ -246,7 +246,7 @@ gnc_get_ea_locale_dir(const char *top_dir)
locale = g_strdup ("C");
}
}
-#elif defined PLATFORM_OSX
+#elif defined MAC_INTEGRATION
locale = mac_locale();
# else
locale = g_strdup(setlocale(LC_MESSAGES, NULL));
Summary of changes:
src/gnome/assistant-hierarchy.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
More information about the gnucash-changes
mailing list