MSC_VER <= 1200 isn't supported; remove dead code
authorRich Salz <rsalz@openssl.org>
Fri, 25 Aug 2017 20:05:18 +0000 (16:05 -0400)
committerRich Salz <rsalz@openssl.org>
Sun, 27 Aug 2017 15:35:39 +0000 (11:35 -0400)
VisualStudio 6 and earlier aren't supported.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4263)

CHANGES
crypto/sha/sha512.c
e_os.h
test/ectest.c

diff --git a/CHANGES b/CHANGES
index f9b58f9a314c77c56f58b078c2f2acfc28263090..2cf69933241c28557ec594b8b2dbc8bfbfeab1b4 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -9,6 +9,10 @@
 
  Changes between 1.1.0f and 1.1.1 [xx XXX xxxx]
 
+  *) Some macro definitions to support VS6 have been removed.  Visual
+     Studio 6 has not worked since 1.1.0
+     [Rich Salz]
+
   *) Add ERR_clear_last_mark(), to allow callers to clear the last mark
      without clearing the errors.
      [Richard Levitte]
index e94de4370b61c93801214ea54ec68b2c5ffdd97c..263bae2904b80269f40584b732f898f9e2f38fc2 100644 (file)
@@ -399,9 +399,6 @@ static SHA_LONG64 __fastcall __pull64be(const void *x)
 }
 #    endif
 #    define PULL64(x) __pull64be(&(x))
-#    if _MSC_VER<=1200
-#     pragma inline_depth(0)
-#    endif
 #   endif
 #  endif
 # endif
diff --git a/e_os.h b/e_os.h
index 5f4ba3e9b24840b2e3f44ee0c38a0a80ac41e9d7..2310e32c84b6c5d418e1dca23e741e1d3e73ff2e 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -196,14 +196,6 @@ static __inline unsigned int _strlen31(const char *str)
 }
 #   endif
 #   include <malloc.h>
-#   if defined(_MSC_VER) && _MSC_VER<=1200 && defined(_MT) && defined(isspace)
-       /* compensate for bug in VC6 ctype.h */
-#    undef isspace
-#    undef isdigit
-#    undef isalnum
-#    undef isupper
-#    undef isxdigit
-#   endif
 #   if defined(_MSC_VER) && !defined(_WIN32_WCE) && !defined(_DLL) && defined(stdin)
 #    if _MSC_VER>=1300 && _MSC_VER<1600
 #     undef stdin
index 3267a3daf576ec4c55a45d9d53158799ee88c9f8..03d794330123b07700af932bcc70fa5764680d62 100644 (file)
 # include <openssl/bn.h>
 # include <openssl/opensslconf.h>
 
-# if defined(_MSC_VER) && defined(_MIPS_) && (_MSC_VER/100==12)
-/* suppress "too big too optimize" warning */
-#  pragma warning(disable:4959)
-# endif
-
 static size_t crv_len = 0;
 static EC_builtin_curve *curves = NULL;