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 @@
#if HAVE_STRING_H
#include <string.h>
#endif
+@@ -113,8 +105,6 @@
+ #endif
+
+ #if HAVE_WINDOWS_H
+-#include <winsock2.h>
+-#include <ws2tcpip.h>
+ #include <windows.h>
+ #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) */