diff options
author | John Emmas <johne53@tiscali.co.uk> | 2016-08-28 10:31:43 +0100 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2016-08-28 10:31:43 +0100 |
commit | b90cfa7e3958d4e0c575aacc15ea3ca4e68de4a5 (patch) | |
tree | 4a72700e5869b62786d5e3b3b634eba09c8b627b /libs/fluidsynth/src | |
parent | 4d7eb04cf6f2857955528b6e24e7b6f5e21fc7d4 (diff) |
Configure the new 'fluidsynth' library to be buildable with MSVC
(haven't built any fluidsynth plugins yet)
Diffstat (limited to 'libs/fluidsynth/src')
-rw-r--r-- | libs/fluidsynth/src/fluid_sys.c | 1 | ||||
-rw-r--r-- | libs/fluidsynth/src/fluidsynth_priv.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libs/fluidsynth/src/fluid_sys.c b/libs/fluidsynth/src/fluid_sys.c index 328f2556d6..55decaa506 100644 --- a/libs/fluidsynth/src/fluid_sys.c +++ b/libs/fluidsynth/src/fluid_sys.c @@ -19,6 +19,7 @@ */ #include "fluid_sys.h" +#include <io.h> #if WITH_READLINE diff --git a/libs/fluidsynth/src/fluidsynth_priv.h b/libs/fluidsynth/src/fluidsynth_priv.h index d29ba8a52f..b01618df26 100644 --- a/libs/fluidsynth/src/fluidsynth_priv.h +++ b/libs/fluidsynth/src/fluidsynth_priv.h @@ -121,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) */ |