Replace use of ctype function that caused warning

This commit is contained in:
Camilla Löwy 2018-05-18 11:30:14 +02:00
parent 8d1a64c831
commit a9a5a0b016

View File

@ -32,7 +32,6 @@
#include <math.h> #include <math.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <ctype.h>
// Internal key state used for sticky keys // Internal key state used for sticky keys
#define _GLFW_STICK 3 #define _GLFW_STICK 3
@ -1086,7 +1085,9 @@ GLFWAPI int glfwUpdateGamepadMappings(const char* string)
while (*c) while (*c)
{ {
if (isxdigit(*c)) if ((*c >= '0' && *c <= '9') ||
(*c >= 'a' && *c <= 'z') ||
(*c >= 'A' && *c <= 'Z'))
{ {
char line[1024]; char line[1024];