From 066a41acdf18f1c3cbaf559097c3acdfc6a4530e Mon Sep 17 00:00:00 2001
From: Danny Smith <dannysmith@users.sourceforge.net>
Date: Mon, 6 Jan 2003 00:18:45 +0000
Subject: [PATCH] 	* include/winuser.h ((SPI_SETWHEELSCROLLLINES) Add
 define. 	* include/zmouse.h (WHEEL_DELTA): Guard against prior 
 definition. 	(WHEEL_PAGESCROLL): Likewise. 	(SPI_SETWHEELSCROLLLINES):
 Define, if not already done.

---
 winsup/w32api/include/winuser.h |  1 +
 winsup/w32api/include/zmouse.h  | 13 +++++++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/winsup/w32api/include/winuser.h b/winsup/w32api/include/winuser.h
index 4844ba002..74790e2ed 100644
--- a/winsup/w32api/include/winuser.h
+++ b/winsup/w32api/include/winuser.h
@@ -1125,6 +1125,7 @@ extern "C" {
 #define SPI_SETSOUNDSENTRY 65
 #define SPI_SETSTICKYKEYS 59
 #define SPI_SETTOGGLEKEYS 53
+#define SPI_SETWHEELSCROLLLINES 105
 #define SPI_SETWORKAREA 47
 #define SPIF_UPDATEINIFILE 1
 #define SPIF_SENDWININICHANGE 2
diff --git a/winsup/w32api/include/zmouse.h b/winsup/w32api/include/zmouse.h
index abb61ea74..764d43d13 100644
--- a/winsup/w32api/include/zmouse.h
+++ b/winsup/w32api/include/zmouse.h
@@ -21,7 +21,16 @@
 # define WM_MOUSEWHEEL (WM_MOUSELAST + 1)
 #endif
 
-#define WHEEL_DELTA 120
-#define WHEEL_PAGESCROLL UINT_MAX
+#ifndef WHEEL_DELTA
+# define WHEEL_DELTA 120
+#endif
+
+#ifndef WHEEL_PAGESCROLL
+# define WHEEL_PAGESCROLL UINT_MAX
+#endif
+
+#ifndef SPI_SETWHEELSCROLLLINES
+# define SPI_SETWHEELSCROLLLINES 105
+#endif
 
 #endif /* _ZMOUSE_H */