Skip to content

Commit

Permalink
Add if _MSC_VER around pragma comment lib bcrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Sep 10, 2024
1 parent e62ac31 commit 6ffeb09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/mbedtls/library/entropy_poll.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,13 @@
#if defined(_WIN32) && !defined(EFIX64) && !defined(EFI32)

#include <windows.h>
#pragma comment(lib, "bcrypt.lib")
#include <bcrypt.h>
#include <intsafe.h>

#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)
{
Expand Down

0 comments on commit 6ffeb09

Please sign in to comment.