remove unused ctype.h header

None of the functions in these files come from ctype.h

Also changed one instance of isdigit to the C++ variant.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-03-12 15:43:10 -07:00
parent ab9f5d2067
commit 2b3d6461e3
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
3 changed files with 1 additions and 3 deletions

View File

@ -32,7 +32,6 @@
#include <unicode/ustring.h>
#else
#include <algorithm>
#include <ctype.h>
#endif
#ifdef _WIN32

View File

@ -29,7 +29,6 @@
#include <unicode/ustring.h>
#else
#include <algorithm>
#include <ctype.h>
#endif
#ifdef _WIN32

View File

@ -266,7 +266,7 @@ osx_output_parse_channel_map(const char *device_name,
}
if (want_number &&
(isdigit(*channel_map_str) || *channel_map_str == '-')
(std::isdigit(*channel_map_str) || *channel_map_str == '-')
) {
channel_map[inserted_channels] = strtol(channel_map_str, &endptr, 10);
if (channel_map[inserted_channels] < -1)