From 6ffeb09c39a007d4526f7e312756ca424c225df6 Mon Sep 17 00:00:00 2001 From: Yuxiao Mao Date: Tue, 10 Sep 2024 14:47:40 +0200 Subject: [PATCH] Add if _MSC_VER around pragma comment lib bcrypt --- include/mbedtls/library/entropy_poll.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/mbedtls/library/entropy_poll.c b/include/mbedtls/library/entropy_poll.c index 971c370be..d1248339f 100644 --- a/include/mbedtls/library/entropy_poll.c +++ b/include/mbedtls/library/entropy_poll.c @@ -39,10 +39,13 @@ #if defined(_WIN32) && !defined(EFIX64) && !defined(EFI32) #include -#pragma comment(lib, "bcrypt.lib") #include #include +#if defined(_MSC_VER) +#pragma comment(lib, "bcrypt.lib") +#endif + int mbedtls_platform_entropy_poll(void *data, unsigned char *output, size_t len, size_t *olen) {