Windows VST3 build fail on develop on MSVC2015


After uptading to the latest develop branch (92c219f) I was getting a build error The C++ Standard Library forbids macroizing keywords while compiling the VST3 stuff on VS2015. It looks like commit b5fb095 in juce_VST3_Wrapper.cpp to handle VS2008 (defingin nullptr) causes this. How about somehting like this:

#if (_WIN32 || _WIN64)
 #if (_MSC_VER <= 1500)
   // old VS2008 needs this to include the VST3 SDK
   #ifndef nullptr
    #define nullptr (0)

I don’t have VS2008 to test this though! It now works in 2015.



Thanks for spotting this! This is now fixed!