From c986dbf2b2746f24190f3d440b39df19870ad29a Mon Sep 17 00:00:00 2001 From: Tomas Orti Date: Mon, 14 Jan 2019 23:53:36 +0100 Subject: [PATCH] Fixed compilation with Visual Studio Community 2017 --- README.md | 2 +- tts.cpp | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a42959a..5397808 100755 --- a/README.md +++ b/README.md @@ -50,4 +50,4 @@ Pre-built binary at http://sharing-from-brook.16002.n6.nabble.com/file/n4967530/ # Build - cl tts.cpp lame.lib libmp3lame-static.lib mpglib-static.lib + cl tts.cpp lame.lib libmp3lame-static.lib mpglib-static.lib legacy_stdio_definitions.lib diff --git a/tts.cpp b/tts.cpp index 7d7fc59..1face22 100755 --- a/tts.cpp +++ b/tts.cpp @@ -32,6 +32,14 @@ #include #include #include + +FILE _iob[] = {*stdin, *stdout, *stderr}; + +extern "C" FILE * __cdecl __iob_func(void) +{ + return _iob; +} + extern "C" { int wav2mp3(char*inPath,char*outPath);