mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 11:35:11 +00:00
parent
7c7cc59889
commit
2c09407bff
@ -283,9 +283,8 @@ GLFWbool _glfwInitJoysticksLinux(void)
|
|||||||
|
|
||||||
// Continue without device connection notifications if inotify fails
|
// Continue without device connection notifications if inotify fails
|
||||||
|
|
||||||
_glfw.linjs.regex_compiled = regcomp(&_glfw.linjs.regex,
|
_glfw.linjs.regexCompiled = (regcomp(&_glfw.linjs.regex, "^event[0-9]\\+$", 0) == 0);
|
||||||
"^event[0-9]\\+$", 0) == 0;
|
if (!_glfw.linjs.regexCompiled)
|
||||||
if (!_glfw.linjs.regex_compiled)
|
|
||||||
{
|
{
|
||||||
_glfwInputError(GLFW_PLATFORM_ERROR, "Linux: Failed to compile regex");
|
_glfwInputError(GLFW_PLATFORM_ERROR, "Linux: Failed to compile regex");
|
||||||
return GLFW_FALSE;
|
return GLFW_FALSE;
|
||||||
@ -345,7 +344,7 @@ void _glfwTerminateJoysticksLinux(void)
|
|||||||
close(_glfw.linjs.inotify);
|
close(_glfw.linjs.inotify);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_glfw.linjs.regex_compiled)
|
if (_glfw.linjs.regexCompiled)
|
||||||
regfree(&_glfw.linjs.regex);
|
regfree(&_glfw.linjs.regex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ typedef struct _GLFWlibraryLinux
|
|||||||
int inotify;
|
int inotify;
|
||||||
int watch;
|
int watch;
|
||||||
regex_t regex;
|
regex_t regex;
|
||||||
GLFWbool regex_compiled;
|
GLFWbool regexCompiled;
|
||||||
GLFWbool dropped;
|
GLFWbool dropped;
|
||||||
} _GLFWlibraryLinux;
|
} _GLFWlibraryLinux;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user