Fix for CVE-2014-0076
[openssl.git] / e_os.h
diff --git a/e_os.h b/e_os.h
index f737ae854747f8ee26d44a6cba00d50dca3cad58..c5ed54f3b2992bca2b52b1d845ab99a251512db0 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -373,6 +373,13 @@ static unsigned int _strlen31(const char *str)
 #    define DEFAULT_HOME  "C:"
 #  endif
 
+/* Avoid Windows 8 SDK GetVersion deprecated problems */
+#if defined(_MSC_VER) && _MSC_VER>=1800
+#  define check_winnt() (1)
+#else
+#  define check_winnt() (GetVersion() < 0x80000000)
+#endif 
+
 #else /* The non-microsoft world */
 
 #  ifdef OPENSSL_SYS_VMS