summaryrefslogtreecommitdiff
path: root/navit
diff options
context:
space:
mode:
Diffstat (limited to 'navit')
-rw-r--r--navit/file.c3
-rw-r--r--navit/main.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/navit/file.c b/navit/file.c
index 05f98f153..94878f882 100644
--- a/navit/file.c
+++ b/navit/file.c
@@ -43,9 +43,10 @@
#define O_BINARY 0
#endif
-#if 0
+#ifdef CACHE_SIZE
static GHashTable *file_name_hash;
#endif
+
static struct cache *file_cache;
struct file_cache_id {
diff --git a/navit/main.c b/navit/main.c
index 4d5ace101..25e4de8af 100644
--- a/navit/main.c
+++ b/navit/main.c
@@ -289,7 +289,8 @@ main_init_nls(void)
{
#ifdef ENABLE_NLS
#ifdef FORCE_LOCALE
- setlocale(LC_MESSAGES,FORCE_LOCALE);
+#define STRINGIFY(x) #x
+ setlocale(LC_MESSAGES,STRINGIFY(FORCE_LOCALE));
#endif
bindtextdomain(PACKAGE, getenv("NAVIT_LOCALEDIR"));
bind_textdomain_codeset (PACKAGE, "UTF-8");