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)"
This commit is contained in:
Albrecht Schlosser 2024-10-07 18:14:19 +02:00
parent 9dd8bf4b60
commit 475bfa9230

View File

@ -90,6 +90,12 @@ void fl_cleanup_dc_list(void);
# include <wchar.h>
#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);