diff --git a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp index 8216ed67c0..3be9081511 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -956,7 +956,9 @@ private: std::atomic vst3IsPlaying { false }, inSetupProcessing { false }; + #if ! JUCE_MAC float lastScaleFactorReceived = 1.0f; + #endif void setupParameters() { @@ -1513,12 +1515,12 @@ private: }; std::unique_ptr cubase10Workaround; - #endif - + #else float editorScaleFactor = 1.0f; - #if JUCE_WINDOWS - WindowsHooks hooks; + #if JUCE_WINDOWS + WindowsHooks hooks; + #endif #endif //==============================================================================