diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2018-01-03 19:19:39 -0800 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2018-01-03 19:19:39 -0800 |
commit | 3001f934776c5bb61a735fe676c3d82e69c47868 (patch) | |
tree | ff0cdfae121cd65469375055f3585b924ad4d313 /msvc | |
parent | c74dce858335d87ae07e2eceb7c166fa275bc8fe (diff) | |
download | libusb-3001f934776c5bb61a735fe676c3d82e69c47868.tar.gz |
Misc: Ensure that both WINVER and _WIN32_WINNT are defined for Windows builds
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'msvc')
-rw-r--r-- | msvc/config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/msvc/config.h b/msvc/config.h index 7a374b3..bcfa757 100644 --- a/msvc/config.h +++ b/msvc/config.h @@ -5,6 +5,10 @@ #error "Please make sure the msvc/ directory is removed from your build path." #endif +/* Only support Windows XP and later */ +#define WINVER 0x0501 +#define _WIN32_WINNT 0x0501 + /* Visual Studio 2015 and later defines timespec */ #if defined(_MSC_VER) && (_MSC_VER >= 1900) #define _TIMESPEC_DEFINED 1 |