Fix invalid pointer conversions

C does not allow conversions between data pointers and function
pointers.

Yes, the name of the macro is reserved.  That's something for a future
commit to fix.

Fixes #1703
This commit is contained in:
Camilla Löwy
2021-10-21 19:43:01 +02:00
parent 68534cc2ce
commit ee6ff939a5
5 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -440,7 +440,7 @@ GLFWAPI int glfwGetError(const char** description)
GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun cbfun)
{
_GLFW_SWAP_POINTERS(_glfwErrorCallback, cbfun);
_GLFW_SWAP(GLFWerrorfun, _glfwErrorCallback, cbfun);
return cbfun;
}