summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/os_version.hpp8
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 */