From 2ea8e1086b1c298e8df29bc7b02e4009c60fd689 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 30 Oct 2020 22:45:03 +0100 Subject: [PATCH] Add missing includes for gcc >= 10 When compiling with gcc >= 10.2.0 the build fails on missing includes. This adds the missing includes and fixes #20 source/common/threadchecker_linux.cpp: Add missing includes `` and `` for `stderr` and `fprintf` (respectively) samples/vst/mda-vst3/source/mdaPianoProcessor.cpp: Add missing include of `` for an `printf()` call. Make the `printf()` call less offensive. --- samples/vst/mda-vst3/source/mdaPianoProcessor.cpp | 3 ++- source/common/threadchecker_linux.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/vst/mda-vst3/source/mdaPianoProcessor.cpp b/samples/vst/mda-vst3/source/mdaPianoProcessor.cpp index 143bdec9..233ace4c 100644 --- a/samples/vst/mda-vst3/source/mdaPianoProcessor.cpp +++ b/samples/vst/mda-vst3/source/mdaPianoProcessor.cpp @@ -19,6 +19,7 @@ #include "mdaPianoData.h" #include +#include namespace Steinberg { namespace Vst { @@ -224,7 +225,7 @@ void PianoProcessor::doProcessing (ProcessData& data) if (!(l > -2.0f) || !(l < 2.0f)) { - printf ("what is this shit? %d, %f, %f\n", i, x, V->f0); + printf ("what is this? %d, %f, %f\n", i, x, V->f0); l = 0.0f; } if (!(r > -2.0f) || !(r < 2.0f)) diff --git a/source/common/threadchecker_linux.cpp b/source/common/threadchecker_linux.cpp index c301440b..c450b44e 100644 --- a/source/common/threadchecker_linux.cpp +++ b/source/common/threadchecker_linux.cpp @@ -38,7 +38,9 @@ #if SMTG_OS_LINUX +#include #include +#include //------------------------------------------------------------------------ namespace Steinberg {