From 475bfa92308b52d6fc307f376d617697f8d95ae2 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 7 Oct 2024 18:14:19 +0200 Subject: [PATCH] Define missing macro on Windows/MinGW platform ... as reported today by Ian on fltk.general in thread "Mingw-32 compile issue with new 4/5 mousebutton hooks (fltk-1.4)" --- src/Fl_win32.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 06e9d5eee..adaf598c6 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -90,6 +90,12 @@ void fl_cleanup_dc_list(void); # include #endif +// old versions of MinGW lack definition of GET_XBUTTON_WPARAM: + +#ifndef GET_XBUTTON_WPARAM +#define GET_XBUTTON_WPARAM(wParam) (HIWORD(wParam)) +#endif + static bool is_dpi_aware = false; extern bool fl_clipboard_notify_empty(void);