diff options
Diffstat (limited to 'src/Fl.cxx')
| -rw-r--r-- | src/Fl.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index dbde5010c..7ba7744e1 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -35,6 +35,16 @@ #include <FL/Fl_Window.H> #include <FL/Fl_Tooltip.H> +/* We require Windows 2000 features (e.g. VK definitions) */ +#if defined(WIN32) +# if !defined(WINVER) || (WINVER < 0x0500) +# define WINVER 0x0500 +# endif +# if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0500) +# define _WIN32_WINNT 0x0500 +# endif +#endif + // recent versions of MinGW warn: "Please include winsock2.h before windows.h", // hence we must include winsock2.h before FL/x.H (A.S. Dec. 2010) #if defined(WIN32) && !defined(__CYGWIN__) |
