use #pragma comment(lib) with _MSC_VER only
authorViktor Szakats <commit@vsz.me>
Sun, 3 Jul 2022 22:30:06 +0000 (22:30 +0000)
committerTomas Mraz <tomas@openssl.org>
Mon, 11 Jul 2022 08:37:28 +0000 (10:37 +0200)
commitccc7ccb49db89865b135097237e173f82bc74751
tree22b774b844b4f9ac7b2061d3cf4a882e6aff132e
parent17098c116d68b3a01fcb688487dccdc0c10b8f63
use #pragma comment(lib) with _MSC_VER only

Avoid this warning when compiled with llvm/gcc + mingw-w64 and
`USE_BCRYPTGENRANDOM` enabled:

```
../providers/implementations/rands/seeding/rand_win.c:31:11: warning: unknown pragma ignored [-Wunknown-pragmas]
          ^
1 warning generated.
```

CLA: trivial

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18709)

(cherry picked from commit 695cb63c744bab090144a86949b68324ee3094d6)
crypto/rand/rand_win.c