summaryrefslogtreecommitdiffstats
path: root/e_os.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-01-09 14:06:36 +0000
committerMatt Caswell <matt@openssl.org>2015-01-13 09:44:59 +0000
commit86d21d0b9577322ac5da0114c5fac16eb49b4cef (patch)
treea3fed363e0a2eee59cc2fee22488f92e8a2239ff /e_os.h
parent964012dc5a7bfbde8794c4c49ed1aa40ee88f90d (diff)
Avoid deprecation problems in Visual Studio 13
Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'e_os.h')
-rw-r--r--e_os.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/e_os.h b/e_os.h
index 5c8842ae17..28417b2074 100644
--- a/e_os.h
+++ b/e_os.h
@@ -337,11 +337,13 @@ static __inline unsigned int _strlen31(const char *str)
# define DEFAULT_HOME "C:"
# endif
-/* Avoid Windows 8 SDK GetVersion deprecated problems */
+/* Avoid Visual Studio 13 GetVersion deprecated problems */
#if defined(_MSC_VER) && _MSC_VER>=1800
# define check_winnt() (1)
+# define check_win_minplat(x) (1)
#else
# define check_winnt() (GetVersion() < 0x80000000)
+# define check_win_minplat(x) (LOBYTE(LOWORD(GetVersion())) >= (x))
#endif
#else /* The non-microsoft world */