From feeb2d69d7a4522d3efb4fe1c697f785a4f64cf8 Mon Sep 17 00:00:00 2001 From: Stefan Wildemann Date: Wed, 6 Jun 2018 00:37:02 +0200 Subject: remove uneccesary posix calls on windows --- navit/support/espeak/compiledict.c | 2 ++ navit/support/espeak/readclause.c | 5 +++++ 2 files changed, 7 insertions(+) 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) { @@ -900,6 +902,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 -- cgit v1.2.1