commit 8e6998eb5884be9425870183b2e7bfea0f18c274 parent 19f4dcec8c582314a5946b4372f7f3e61455a4bc Author: falkTX <falktx@falktx.com> Date: Sat, 24 Sep 2022 12:37:13 +0100 Fix msvc win32 build Signed-off-by: falkTX <falktx@falktx.com> Diffstat:
M | distrho/src/DistrhoPluginVST2.cpp | | | 8 | +++++++- |
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/distrho/src/DistrhoPluginVST2.cpp b/distrho/src/DistrhoPluginVST2.cpp @@ -30,7 +30,13 @@ #include <string> #include <vector> -#ifndef __stdcall +#if defined(DISTRHO_OS_WINDOWS) +# ifndef NOMINMAX +# define NOMINMAX +# endif +# include <winsock2.h> +# include <windows.h> +#elif !defined(__stdcall) # define __stdcall #endif