From b3d3082fc468c568088c44785a5889072268c586 Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Wed, 17 Feb 2010 11:35:37 +0000 Subject: [PATCH] Fixed a Win32 constant missing after upgrading to gcc 4.4 headers git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1407 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Window/Win32/WindowImplWin32.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SFML/Window/Win32/WindowImplWin32.cpp b/src/SFML/Window/Win32/WindowImplWin32.cpp index 526ad566e..288e75a5b 100644 --- a/src/SFML/Window/Win32/WindowImplWin32.cpp +++ b/src/SFML/Window/Win32/WindowImplWin32.cpp @@ -36,13 +36,16 @@ #include #include -// Old versions of MinGW lack the definition of XBUTTON1 and XBUTTON2 +// MinGW lacks the definition of some Win32 constants #ifndef XBUTTON1 #define XBUTTON1 0x0001 #endif #ifndef XBUTTON2 #define XBUTTON2 0x0002 #endif +#ifndef MAPVK_VK_TO_VSC + #define MAPVK_VK_TO_VSC (0) +#endif namespace sf