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: 's avatarRosen Penev <rosenp@gmail.com>
parent ab9f5d20
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include <unicode/ustring.h> #include <unicode/ustring.h>
#else #else
#include <algorithm> #include <algorithm>
#include <ctype.h>
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include <unicode/ustring.h> #include <unicode/ustring.h>
#else #else
#include <algorithm> #include <algorithm>
#include <ctype.h>
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
......
...@@ -266,7 +266,7 @@ osx_output_parse_channel_map(const char *device_name, ...@@ -266,7 +266,7 @@ osx_output_parse_channel_map(const char *device_name,
} }
if (want_number && 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); channel_map[inserted_channels] = strtol(channel_map_str, &endptr, 10);
if (channel_map[inserted_channels] < -1) if (channel_map[inserted_channels] < -1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment