mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Don't need ctype 'isprint' here anymore
This commit is contained in:
parent
9ec396c0ea
commit
e2d4ff5614
@ -17,7 +17,6 @@
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include <encodings/utf.h>
|
||||
|
||||
@ -130,6 +129,9 @@ static input_keyboard_line_t *input_keyboard_line_new(void *userdata,
|
||||
return state;
|
||||
}
|
||||
|
||||
/* Depends on ASCII character values */
|
||||
#define ISPRINT(c) (((int)(c) >= ' ' && (int)(c) <= '~') ? 1 : 0)
|
||||
|
||||
/**
|
||||
* input_keyboard_line_event:
|
||||
* @state : Input keyboard line handle.
|
||||
@ -173,7 +175,7 @@ static bool input_keyboard_line_event(
|
||||
}
|
||||
|
||||
}
|
||||
else if (isprint((int)c))
|
||||
else if (ISPRINT(c))
|
||||
{
|
||||
/* Handle left/right here when suitable */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user