diff options
author | José Fonseca <jfonseca@vmware.com> | 2014-06-17 23:07:31 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2014-06-17 23:07:31 +0100 |
commit | e1c8f2b54afc813aeee8fb44010cf9ad030c92c3 (patch) | |
tree | 5c4f2a630ba10a66590f388371b6a3aae228fd23 /common | |
parent | 89b697fee631fce716942d65b3d05fb08128bbab (diff) |
os: Fix build with MSVC 2012.
Diffstat (limited to 'common')
-rw-r--r-- | common/os_version.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/os_version.hpp b/common/os_version.hpp index 15800f79..65ed1fc3 100644 --- a/common/os_version.hpp +++ b/common/os_version.hpp @@ -30,14 +30,14 @@ #include <windows.h> -#ifdef _MSC_VER +#if defined(_MSC_VER) && _MSC_VER >= 1800 #include <VersionHelpers.h> -#else /* !_MSC_VER */ +#else /** - * MinGW doesn't have VersionHelpers.h header yet. + * VersionHelpers.h is not yet widely available. * * See http://msdn.microsoft.com/en-gb/library/windows/desktop/ms725491.aspx */ @@ -59,7 +59,7 @@ IsWindows8OrGreater() dwlConditionMask); } -#endif /* !_MSC_VER */ +#endif #endif /* _WIN32 */ |