summaryrefslogtreecommitdiff
path: root/providers
diff options
context:
space:
mode:
Diffstat (limited to 'providers')
-rw-r--r--providers/implementations/rands/seeding/rand_win.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/providers/implementations/rands/seeding/rand_win.c b/providers/implementations/rands/seeding/rand_win.c
index 704705425a..a21b74dd86 100644
--- a/providers/implementations/rands/seeding/rand_win.c
+++ b/providers/implementations/rands/seeding/rand_win.c
@@ -28,7 +28,9 @@
# ifdef USE_BCRYPTGENRANDOM
# include <bcrypt.h>
-# pragma comment(lib, "bcrypt.lib")
+# ifdef _MSC_VER
+# pragma comment(lib, "bcrypt.lib")
+# endif
# ifndef STATUS_SUCCESS
# define STATUS_SUCCESS ((NTSTATUS)0x00000000L)
# endif