From 79632147107213eaac2d8e9251126d4d09f6dbb6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 17 Sep 2020 17:29:50 +0200 Subject: [PATCH] Use C-compatible isprint() - fixes MSVC builds --- libs/ardour/vst3_host.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ardour/vst3_host.cc b/libs/ardour/vst3_host.cc index 12251d99e1..f7503c78f7 100644 --- a/libs/ardour/vst3_host.cc +++ b/libs/ardour/vst3_host.cc @@ -17,6 +17,7 @@ * */ +#include #include #if (__cplusplus >= 201103L) @@ -769,7 +770,7 @@ RAMStream::hexdump (int64 max_len) const if (true) { for (size_t j = 0; j < row_size; ++j) { if (i + j < length) { - if (std::isprint(_data[i + j])) { + if (isprint(_data[i + j])) { out << static_cast(_data[i + j]); } else { out << ".";