mirror of
https://github.com/glfw/glfw.git
synced 2024-11-29 21:37:27 +00:00
Replace use of ctype function that caused warning
This commit is contained in:
parent
8d1a64c831
commit
a9a5a0b016
@ -32,7 +32,6 @@
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
// Internal key state used for sticky keys
|
||||
#define _GLFW_STICK 3
|
||||
@ -1086,7 +1085,9 @@ GLFWAPI int glfwUpdateGamepadMappings(const char* string)
|
||||
|
||||
while (*c)
|
||||
{
|
||||
if (isxdigit(*c))
|
||||
if ((*c >= '0' && *c <= '9') ||
|
||||
(*c >= 'a' && *c <= 'z') ||
|
||||
(*c >= 'A' && *c <= 'Z'))
|
||||
{
|
||||
char line[1024];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user