Commit cd8f63f2805bff4041a29649530edc76a6bc9344

Sam Lantinga 2014-07-07T13:21:54

Hopefully fixed Cygwin build

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/joystick/windows/SDL_windowsjoystick.c b/src/joystick/windows/SDL_windowsjoystick.c
index 9028e3d..c7fa068 100644
--- a/src/joystick/windows/SDL_windowsjoystick.c
+++ b/src/joystick/windows/SDL_windowsjoystick.c
@@ -57,6 +57,10 @@
 #include "../../haptic/windows/SDL_xinputhaptic_c.h"    /* For haptic hot plugging */
 
 
+#ifndef DEVICE_NOTIFY_WINDOW_HANDLE
+#define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000
+#endif
+
 /* local variables */
 static SDL_bool s_bDeviceAdded = SDL_FALSE;
 static SDL_bool s_bDeviceRemoved = SDL_FALSE;