Browse Source

Fixed bug 2450 - Crosscompiling for Win32 with MinGW fails due to WM_UNICHAR undeclared

Sam Lantinga 11 years ago
parent
commit
56b40ce046
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/video/windows/SDL_windowsevents.c

+ 3 - 0
src/video/windows/SDL_windowsevents.c

@@ -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 )