Fixed bug 2450 - Crosscompiling for Win32 with MinGW fails due to WM_UNICHAR undeclared
authorSam Lantinga <slouken@libsdl.org>
Sat, 15 Mar 2014 16:32:45 -0700
changeset 8624 c87db33e4cae
parent 8623 b4eee818b6fd
child 8625 f285b9487756
Fixed bug 2450 - Crosscompiling for Win32 with MinGW fails due to WM_UNICHAR undeclared
src/video/windows/SDL_windowsevents.c
--- a/src/video/windows/SDL_windowsevents.c	Sat Mar 15 16:27:06 2014 -0700
+++ b/src/video/windows/SDL_windowsevents.c	Sat Mar 15 16:32:45 2014 -0700
@@ -71,6 +71,9 @@
 #ifndef WM_MOUSEHWHEEL
 #define WM_MOUSEHWHEEL 0x020E
 #endif
+#ifndef WM_UNICHAR
+#define WM_UNICHAR 0x0109
+#endif
 
 static SDL_Scancode
 WindowsScanCodeToSDLScanCode( LPARAM lParam, WPARAM wParam )