Fix detection of glfinithintstring

This commit is contained in:
Kovid Goyal 2017-09-18 08:40:02 +05:30
parent 558e4af3c6
commit efaee69486
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -16,8 +16,9 @@
#error "glfw >= 3.2 required"
#endif
#if GLFW_VERSION_MAJOR > 4 || (GLFW_VERSION_MAJOR == 3 && GLFW_VERSION_MINOR > 2)
#if GLFW_VERSION_MAJOR > 3 || (GLFW_VERSION_MAJOR == 3 && GLFW_VERSION_MINOR > 2)
#define has_request_attention
#define has_init_hint_string
#endif
#if GLFW_KEY_LAST >= MAX_KEY_COUNT
@ -253,7 +254,7 @@ glfw_init_hint_string(PyObject UNUSED *self, PyObject *args) {
int hint_id;
char *hint;
if (!PyArg_ParseTuple(args, "is", &hint_id, &hint)) return NULL;
#ifdef glfwInitHintString
#ifdef has_init_hint_string
glfwInitHintString(hint_id, hint);
#endif
Py_RETURN_NONE;