Add a compile time check for GLFW version

This commit is contained in:
Kovid Goyal 2017-01-07 21:39:28 +05:30
parent a7e2fa570f
commit e9dd7f6276

View File

@ -6,6 +6,10 @@
#pragma once
#if GLFW_CONTEXT_VERSION_MAJOR < 3 || (GLFW_CONTEXT_VERSION_MAJOR == 3 && GLFW_CONTEXT_VERSION_MINOR < 2)
#error "glfw >= 3.2 is required"
#endif
bool init_glfw(PyObject *m);