summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
Diffstat (limited to 'player')
-rw-r--r--player/configfiles.c4
-rw-r--r--player/main.c1
-rw-r--r--player/timeline/tl_cue.c1
-rw-r--r--player/timeline/tl_mpv_edl.c1
4 files changed, 2 insertions, 5 deletions
diff --git a/player/configfiles.c b/player/configfiles.c
index dab26b9df2..d1c79c9c9d 100644
--- a/player/configfiles.c
+++ b/player/configfiles.c
@@ -22,7 +22,6 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
-#include <ctype.h>
#include <libavutil/md5.h>
@@ -34,6 +33,7 @@
#include "common/global.h"
#include "common/encode.h"
#include "common/msg.h"
+#include "misc/ctype.h"
#include "options/path.h"
#include "options/m_config.h"
#include "options/parse_configfile.h"
@@ -267,7 +267,7 @@ static bool needs_config_quoting(const char *s)
{
for (int i = 0; s && s[i]; i++) {
unsigned char c = s[i];
- if (!isprint(c) || isspace(c) || c == '#' || c == '\'' || c == '"')
+ if (!mp_isprint(c) || mp_isspace(c) || c == '#' || c == '\'' || c == '"')
return true;
}
return false;
diff --git a/player/main.c b/player/main.c
index 0a18df1a4e..aebfa06fb1 100644
--- a/player/main.c
+++ b/player/main.c
@@ -21,7 +21,6 @@
#include <stdbool.h>
#include <math.h>
#include <assert.h>
-#include <ctype.h>
#include <string.h>
#include <pthread.h>
diff --git a/player/timeline/tl_cue.c b/player/timeline/tl_cue.c
index 6731ab4058..d5e8b08164 100644
--- a/player/timeline/tl_cue.c
+++ b/player/timeline/tl_cue.c
@@ -20,7 +20,6 @@
#include <stdlib.h>
#include <stdbool.h>
#include <inttypes.h>
-#include <ctype.h>
#include "talloc.h"
diff --git a/player/timeline/tl_mpv_edl.c b/player/timeline/tl_mpv_edl.c
index aba9738d53..78fc8b7cdc 100644
--- a/player/timeline/tl_mpv_edl.c
+++ b/player/timeline/tl_mpv_edl.c
@@ -19,7 +19,6 @@
#include <stdlib.h>
#include <stdbool.h>
#include <inttypes.h>
-#include <ctype.h>
#include <math.h>
#include "talloc.h"