commit 39cd4986bfa489fa43ef84cf05b4871d14710135 parent e512b25281af5887033dae4bfb1c10c40c18fde7 Author: falkTX <falktx@falktx.com> Date: Mon, 28 Mar 2022 21:14:19 +0100 Fix macOS build Diffstat:
M | distrho/src/DistrhoUIVST3.cpp | | | 10 | +++++++--- |
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/distrho/src/DistrhoUIVST3.cpp b/distrho/src/DistrhoUIVST3.cpp @@ -21,9 +21,13 @@ #include "travesty/host.h" #include "travesty/view.h" -#if DISTRHO_PLUGIN_HAS_EXTERNAL_UI && defined(DISTRHO_OS_WINDOWS) -# include <winuser.h> -# define DPF_VST3_WIN32_TIMER_ID 1 +#if DISTRHO_PLUGIN_HAS_EXTERNAL_UI +# if defined(DISTRHO_OS_MAC) +# include <CoreFoundation/CoreFoundation.h> +# elif defined(DISTRHO_OS_WINDOWS) +# include <winuser.h> +# define DPF_VST3_WIN32_TIMER_ID 1 +# endif #endif /* TODO items: