From dc373d2e0eb947fa789723f42edba38922925d57 Mon Sep 17 00:00:00 2001 From: Stanislav Date: Tue, 10 Nov 2015 03:12:38 -0500 Subject: [PATCH] Fix for MinGW compilation GET_XBUTTON_WPARAM is not defined on legacy MinGW. Fixes #639. --- src/win32_window.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/win32_window.c b/src/win32_window.c index 8a7211dc..1f58ce6c 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 //