]> granicus.if.org Git - openssl/commitdiff
e_os.h: limit _MSC_VER trickery to older compilers.
authorAndy Polyakov <appro@openssl.org>
Wed, 2 Jul 2014 20:30:54 +0000 (22:30 +0200)
committerAndy Polyakov <appro@openssl.org>
Wed, 2 Jul 2014 20:34:02 +0000 (22:34 +0200)
PR: #3390
(cherry picked from commit aab3560b65b9254d17770bb6fe3ca7edd7451429)

e_os.h

diff --git a/e_os.h b/e_os.h
index a1e77e7488c70666fe34c600c2c075ad04ffdbef..2076f7519678e0afc56a01eabd551b1af7d966c8 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -310,7 +310,7 @@ static unsigned int _strlen31(const char *str)
 #      undef isxdigit
 #    endif
 #    if defined(_MSC_VER) && !defined(_WIN32_WCE) && !defined(_DLL) && defined(stdin)
-#      if _MSC_VER>=1300
+#      if _MSC_VER>=1300 && _MSC_VER<1600
 #        undef stdin
 #        undef stdout
 #        undef stderr
@@ -318,7 +318,7 @@ static unsigned int _strlen31(const char *str)
 #        define stdin  (&__iob_func()[0])
 #        define stdout (&__iob_func()[1])
 #        define stderr (&__iob_func()[2])
-#      elif defined(I_CAN_LIVE_WITH_LNK4049)
+#      elif _MSC_VER<1300 && defined(I_CAN_LIVE_WITH_LNK4049)
 #        undef stdin
 #        undef stdout
 #        undef stderr