1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

VST3: Work around a bug in the SDK when detecting C++20 support

This commit is contained in:
Anthony Nicholls 2024-09-05 18:58:29 +01:00
parent 99f81c3ece
commit 18d904c6f3
2 changed files with 23 additions and 0 deletions

View file

@ -38,6 +38,7 @@
#endif
#include <juce_core/system/juce_CompilerWarnings.h>
#include <juce_core/system/juce_CompilerSupport.h>
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wc++98-compat-extra-semi",
"-Wdeprecated-declarations",
@ -55,6 +56,17 @@ JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wc++98-compat-extra-semi",
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (6387 6031)
// As of at least 3.7.12 there is a bug in fplatform.h that leads to SMTG_CPP20
// having the wrong value when the /Zc:__cplusplus is not enabled. This work
// around prevents needing to provide that flag
#include <juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/fplatform.h>
#ifdef SMTG_CPP20
#undef SMTG_CPP20
#define SMTG_CPP20 JUCE_CXX20_IS_AVAILABLE
#endif
#ifndef _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
#endif