diff --git a/src/SFML/Window/Win32/WindowImplWin32.cpp b/src/SFML/Window/Win32/WindowImplWin32.cpp index 5ff759e2..6581d912 100644 --- a/src/SFML/Window/Win32/WindowImplWin32.cpp +++ b/src/SFML/Window/Win32/WindowImplWin32.cpp @@ -35,13 +35,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 ////////////////////////////////////////////////////////////