From 1f5d4d3bdcb8f97277b876d91f9557697c704cee Mon Sep 17 00:00:00 2001 From: Stanislav Date: Tue, 10 Nov 2015 03:12:38 -0500 Subject: [PATCH] Fix for MinGW compilation The issue: libs/glfw/src/libglfw3.a(win32_window.c.obj):win32_window.c:(.text+0xa6e): undefined reference to `GET_XBUTTON_WPARAM' collect2.exe: error: ld returned 1 exit status --- src/win32_window.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/win32_window.c b/src/win32_window.c index 8a7211dcb..1f58ce6c1 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -37,6 +37,9 @@ #define _GLFW_WNDCLASSNAME L"GLFW30" +#ifndef GET_XBUTTON_WPARAM +#define GET_XBUTTON_WPARAM(w) (HIWORD(w)) +#endif // Returns the window style for the specified window //