Fix compiler warning
authorPeter Eisentraut
Sun, 1 Sep 2019 21:19:51 +0000 (23:19 +0200)
committerPeter Eisentraut
Sun, 1 Sep 2019 21:19:51 +0000 (23:19 +0200)
Fix a warning about unused variable on Windows when using OpenSSL.

src/port/pg_strong_random.c

index 0fad6f4bcb0864bee659c473c2f7d7ba79e97b09..6be5874cbfb118203aefb7beb336de10058699fe 100644 (file)
 #ifdef USE_OPENSSL
 #include 
 #endif
-#ifdef WIN32
+#ifdef USE_WIN32_RANDOM
 #include 
 #endif
 
-#ifdef WIN32
+#ifdef USE_WIN32_RANDOM
 /*
  * Cache a global crypto provider that only gets freed when the process
  * exits, in case we need random numbers more than once.