Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 36515e4

Browse files
committed
Fix compiler warning
Fix a warning about unused variable on Windows when using OpenSSL.
1 parent 756349c commit 36515e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/port/pg_strong_random.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
#ifdef USE_OPENSSL
2828
#include <openssl/rand.h>
2929
#endif
30-
#ifdef WIN32
30+
#ifdef USE_WIN32_RANDOM
3131
#include <wincrypt.h>
3232
#endif
3333

34-
#ifdef WIN32
34+
#ifdef USE_WIN32_RANDOM
3535
/*
3636
* Cache a global crypto provider that only gets freed when the process
3737
* exits, in case we need random numbers more than once.

0 commit comments

Comments
 (0)