mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
Use C-compatible isprint() - fixes MSVC builds
This commit is contained in:
parent
a8c9bdbbd0
commit
7963214710
1 changed files with 2 additions and 1 deletions
|
|
@ -17,6 +17,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
#include <algorithm>
|
||||
|
||||
#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<char>(_data[i + j]);
|
||||
} else {
|
||||
out << ".";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue