aboutsummaryrefslogtreecommitdiff
path: root/openssl/e_os.h
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/e_os.h')
-rw-r--r--openssl/e_os.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/openssl/e_os.h b/openssl/e_os.h
index 79c139257..6a0aad1de 100644
--- a/openssl/e_os.h
+++ b/openssl/e_os.h
@@ -368,6 +368,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