]> git.street.me.uk Git - andy/viking.git/commitdiff
Windows port: redefine LOCALEDIR
authorMathieu Albinet <mathieu17@gmail.com>
Mon, 9 Jun 2008 19:25:38 +0000 (19:25 +0000)
committerMathieu Albinet <mathieu17@gmail.com>
Mon, 9 Jun 2008 19:25:38 +0000 (19:25 +0000)
./configure proposes a --localedir. But it does not work.
On windows, we really need to redefine it.

Submitted by Mathieu Albinet

ChangeLog
src/main.c

index 519f2b075b4be57c4627e26562bc0a94c48cdc3d..ca008a0af05faac408274351ba5164d47ba0cda7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-06-09:
+Mathieu Albinet <mathieu17@gmail.com>:
+       * Windows port: redefine LOCALEDIR
+
 2008-06-06
 Quy Tonthat <qtonthat@gmail.com>:
        * viking no longer converts waypoint names to uppercase. Waypoint names
index d1b5fc9234b8589339f1d861fa1c9934b14a9413..8150ec01eeae2551bf4e60ec7838debb2c96ad64 100644 (file)
@@ -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 ();