summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2024-10-07 18:14:19 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2024-10-07 18:14:19 +0200
commit475bfa92308b52d6fc307f376d617697f8d95ae2 (patch)
treed09cad881736b17a8f1f964ca827f545e5aa1d13 /src
parent9dd8bf4b60037e7ffc414a07898452cfecfd10bf (diff)
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)"
Diffstat (limited to 'src')
-rw-r--r--src/Fl_win32.cxx6
1 files changed, 6 insertions, 0 deletions
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 <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);