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:
parent
ab9f5d2067
commit
2b3d6461e3
@ -32,7 +32,6 @@
|
||||
#include <unicode/ustring.h>
|
||||
#else
|
||||
#include <algorithm>
|
||||
#include <ctype.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
|
@ -29,7 +29,6 @@
|
||||
#include <unicode/ustring.h>
|
||||
#else
|
||||
#include <algorithm>
|
||||
#include <ctype.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user