From df4e6c4fccd320bf99823980520ee052f748605e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 28 Aug 2016 13:47:12 +0200 Subject: [PATCH] update fluidsynth patch for MSVC --- tools/ardour_fluidsynth.diff | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/tools/ardour_fluidsynth.diff b/tools/ardour_fluidsynth.diff index a370aea510..52db833776 100644 --- a/tools/ardour_fluidsynth.diff +++ b/tools/ardour_fluidsynth.diff @@ -269,7 +269,7 @@ index cc440aa..8977ed6 100644 tuning->pitch[key] = pitch; } diff --git b/libs/fluidsynth/src/fluidsynth_priv.h a/libs/fluidsynth/src/fluidsynth_priv.h -index faf2772..74b9f4b 100644 +index faf2772..b01618d 100644 --- b/libs/fluidsynth/src/fluidsynth_priv.h +++ a/libs/fluidsynth/src/fluidsynth_priv.h @@ -28,14 +28,6 @@ @@ -287,11 +287,7 @@ index faf2772..74b9f4b 100644 #if HAVE_STRING_H #include #endif -diff --git a/libs/fluidsynth/src/fluidsynth_priv.h b/libs/fluidsynth/src/fluidsynth_priv.h -index 74b9f4b..d29ba8a 100644 ---- a/libs/fluidsynth/src/fluidsynth_priv.h -+++ b/libs/fluidsynth/src/fluidsynth_priv.h -@@ -105,8 +105,6 @@ +@@ -113,8 +105,6 @@ #endif #if HAVE_WINDOWS_H @@ -300,3 +296,16 @@ index 74b9f4b..d29ba8a 100644 #include #endif +@@ -131,6 +121,12 @@ + #define STDOUT_FILENO 1 + #define STDERR_FILENO 2 + ++#elif defined _MSC_VER ++ ++#define STDIN_FILENO _fileno(stdin) ++#define STDOUT_FILENO _fileno(stdout) ++#define STDERR_FILENO _fileno(stderr) ++ + #endif + + /* Darwin special defines (taken from config_macosx.h) */