diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2019-09-09 11:42:56 +0200 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2019-09-09 16:43:52 +0200 |
commit | d3a1128bc25ec8bf835c81821e1be68fba39ab4b (patch) | |
tree | adce8bad70d2ab72780a7bcbc1dc5eb094f6ad29 /crypto | |
parent | 20bf3d8b22f8c1a3529034007d3618fd1fc4fa16 (diff) | |
download | openssl-d3a1128bc25ec8bf835c81821e1be68fba39ab4b.tar.gz |
Fix build with VS2008
crypto/rand/rand_win.c(70) : error C2065: 'BCRYPT_USE_SYSTEM_PREFERRED_RNG' : undeclared identifier
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9827)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/rand/rand_win.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/rand/rand_win.c b/crypto/rand/rand_win.c index 8b87419698..38852dc7a0 100644 --- a/crypto/rand/rand_win.c +++ b/crypto/rand/rand_win.c @@ -19,7 +19,8 @@ # include <windows.h> /* On Windows Vista or higher use BCrypt instead of the legacy CryptoAPI */ -# if defined(_MSC_VER) && defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0600 +# if defined(_MSC_VER) && _MSC_VER > 1500 /* 1500 = Visual Studio 2008 */ \ + && defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0600 # define USE_BCRYPTGENRANDOM # endif |