From: Mathieu Albinet Date: Mon, 9 Jun 2008 19:25:38 +0000 (+0000) Subject: Windows port: redefine LOCALEDIR X-Git-Url: https://git.street.me.uk/andy/viking.git/commitdiff_plain/6c6f8d247c0c3c6902d1a4b6d6d9f7e7d0f80b97 Windows port: redefine LOCALEDIR ./configure proposes a --localedir. But it does not work. On windows, we really need to redefine it. Submitted by Mathieu Albinet --- diff --git a/ChangeLog b/ChangeLog index 519f2b07..ca008a0a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-06-09: +Mathieu Albinet : + * Windows port: redefine LOCALEDIR + 2008-06-06 Quy Tonthat : * viking no longer converts waypoint names to uppercase. Waypoint names diff --git a/src/main.c b/src/main.c index d1b5fc92..8150ec01 100644 --- a/src/main.c +++ b/src/main.c @@ -45,6 +45,14 @@ void a_datasource_gc_init(); #define MAX_WINDOWS 1024 +/* FIXME LOCALEDIR must be configured by ./configure --localedir */ +/* But something does not work actually. */ +/* So, we need to redefine this variable on windows. */ +#ifdef WINDOWS +#undef LOCALEDIR +#define LOCALEDIR "locale" +#endif + static guint window_count = 0; static VikWindow *new_window ();