From d50ed81ef8ff92d330795581892fe84e9203bf41 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 26 Feb 2013 20:32:11 -0800 Subject: [PATCH] Fixed cygwin compile --- src/video/windows/SDL_windowsevents.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c index 6a9762a9d..5c2be9ad8 100644 --- a/src/video/windows/SDL_windowsevents.c +++ b/src/video/windows/SDL_windowsevents.c @@ -46,6 +46,9 @@ #define EXTENDED_KEYMASK (1<<24) #define VK_ENTER 10 /* Keypad Enter ... no VKEY defined? */ +#ifndef VK_OEM_NEC_EQUAL +#define VK_OEM_NEC_EQUAL 0x92 +#endif /* Make sure XBUTTON stuff is defined that isn't in older Platform SDKs... */ #ifndef WM_XBUTTONDOWN @@ -64,11 +67,6 @@ #define WM_TOUCH 0x0240 #endif -/* Fix cygwin compile */ -#ifndef VK_OEM_NEC_EQUAL -#define VK_OEM_NEC_EQUAL 0x92 -#endif - static SDL_Scancode WindowsScanCodeToSDLScanCode( int lParam, int wParam, const SDL_Scancode *key_map ) {