summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--navit/support/espeak/compiledict.c2
-rw-r--r--navit/support/espeak/readclause.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/navit/support/espeak/compiledict.c b/navit/support/espeak/compiledict.c
index 11291b8c7..af798ade2 100644
--- a/navit/support/espeak/compiledict.c
+++ b/navit/support/espeak/compiledict.c
@@ -1894,7 +1894,9 @@ static int compile_dictrules(FILE *f_in, FILE *f_out, char *fname_temp)
fputc(0,f_out);
fclose(f_temp);
+#ifndef _WIN32
remove(fname_temp);
+#endif
fprintf(f_log,"\t%d rules, %d groups (%d)\n\n",count,n_rgroups,n_groups3);
return(0);
diff --git a/navit/support/espeak/readclause.c b/navit/support/espeak/readclause.c
index ec7b6711f..172ebad15 100644
--- a/navit/support/espeak/readclause.c
+++ b/navit/support/espeak/readclause.c
@@ -870,6 +870,8 @@ static int LoadSoundFile(const char *fname, int index)
}
f = NULL;
+
+#ifndef _WIN32
#ifdef PLATFORM_POSIX
if((f = fopen(fname,"rb")) != NULL)
{
@@ -901,6 +903,7 @@ static int LoadSoundFile(const char *fname, int index)
}
}
#endif
+#endif
if(f == NULL)
{
@@ -921,7 +924,9 @@ static int LoadSoundFile(const char *fname, int index)
}
length = fread(p,1,length,f);
fclose(f);
+#ifndef _WIN32
remove(fname_temp);
+#endif
ip = (int *)(&p[40]);
soundicon_tab[index].length = (*ip) / 2; // length in samples