Browse Source

Fix new line conversion on windows (#1965)

`#if PLATFORM_WINDOWS` doesn't work for some reason.

Fix suggested by @beqabeqa473
master
Alexander Epaneshnikov 5 months ago
parent
commit
f9ba25e41b
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/espeak-ng.c

+ 1
- 1
src/espeak-ng.c View File

@@ -222,7 +222,7 @@ static int OpenWavFile(char *path, int rate)
f_wavfile = NULL;
if (path[0] != 0) {
if (strcmp(path, "stdout") == 0) {
#if PLATFORM_WINDOWS
#ifdef _WIN32
// prevent Windows adding 0x0d before 0x0a bytes
_setmode(_fileno(stdout), _O_BINARY);
#endif

Loading…
Cancel
Save