Browse Source

Fix building on Windows systems.

master
Reece H. Dunn 9 years ago
parent
commit
af75ed03e8
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      src/libespeak-ng/voices.c

+ 5
- 3
src/libespeak-ng/voices.c View File

&tone_pts[8], &tone_pts[9]); &tone_pts[8], &tone_pts[9]);
} }


static espeak_VOICE *ReadVoiceFile(FILE *f_in, const char *fname)
static espeak_VOICE *ReadVoiceFile(FILE *f_in, const char *fname, const char *leafname)
{ {
(void)leafname; // unused (except for PLATFORM_WINDOWS)

// Read a Voice file, allocate a VOICE_DATA and set data from the // Read a Voice file, allocate a VOICE_DATA and set data from the
// file's language, gender, name lines // file's language, gender, name lines


continue; continue;


// pass voice file name within the voices directory // pass voice file name within the voices directory
voice_data = ReadVoiceFile(f_voice, fname+len_path_voices);
voice_data = ReadVoiceFile(f_voice, fname+len_path_voices, FindFileData.cFileName);
fclose(f_voice); fclose(f_voice);


if (voice_data != NULL) if (voice_data != NULL)
continue; continue;


// pass voice file name within the voices directory // pass voice file name within the voices directory
voice_data = ReadVoiceFile(f_voice, fname+len_path_voices);
voice_data = ReadVoiceFile(f_voice, fname+len_path_voices, ent->d_name);
fclose(f_voice); fclose(f_voice);


if (voice_data != NULL) if (voice_data != NULL)

Loading…
Cancel
Save