Set Enveloped data version to 2 if ktri version not zero.
[openssl.git] / e_os.h
diff --git a/e_os.h b/e_os.h
index 3688c4e0f9e2ce64fea57ec712b477db4fcb9991..a1e77e7488c70666fe34c600c2c075ad04ffdbef 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -371,6 +371,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