From 5007e2bb983a639da5c22f585dc4ad54507b810d Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Mon, 12 Nov 2018 10:09:16 +0000 Subject: [PATCH] Windows: Fixed a VST2 compilation error in VS2013 --- .../VST/juce_VSTCallbackHandler.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/juce_audio_plugin_client/VST/juce_VSTCallbackHandler.h b/modules/juce_audio_plugin_client/VST/juce_VSTCallbackHandler.h index 31c5de3a06..6ba0056360 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VSTCallbackHandler.h +++ b/modules/juce_audio_plugin_client/VST/juce_VSTCallbackHandler.h @@ -56,12 +56,13 @@ struct VSTCallbackHandler void* ptr, float opt) = 0; + // Note: VS2013 prevents a "using" declaration here /** The host callback function type. */ - using VstHostCallbackType = pointer_sized_int (int32 opcode, - int32 index, - pointer_sized_int value, - void* ptr, - float opt); + typedef pointer_sized_int (VstHostCallbackType) (int32 opcode, + int32 index, + pointer_sized_int value, + void* ptr, + float opt); /** This is called once by the VST plug-in wrapper after its constructor. You can use the supplied function to query the VST host.