From fb19c81245fd7fa0b658a5994045695428854bac Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 7 Jan 2017 21:52:33 +0530 Subject: [PATCH] Implement the check for glfw version properly this time --- kitty/glfw.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kitty/glfw.c b/kitty/glfw.c index 7e14b515b..d77d1c41c 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -8,6 +8,10 @@ #include #include +#if GLFW_VERSION_MAJOR < 3 || (GLFW_VERSION_MAJOR == 3 && GLFW_VERSION_MINOR < 2) +#error "glfw >= 3.2 required" +#endif + #define MAX_WINDOWS 256 #define CALLBACK(name, fmt, ...) \