summaryrefslogtreecommitdiffstats
path: root/crypto/rand/rand.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-06-27 14:55:52 +0000
committerRichard Levitte <levitte@openssl.org>2002-06-27 14:55:52 +0000
commitfb96d9d90d4af4b2cc38fd4a48cad2de4d403c37 (patch)
tree25c68223da13750cc968bbbd187438235b42afab /crypto/rand/rand.h
parente1a32c1807024402d223c6f9376330b000f33439 (diff)
When compiling for Windows, make sure we have the windows definitions declared.
Part of PR 123
Diffstat (limited to 'crypto/rand/rand.h')
-rw-r--r--crypto/rand/rand.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/rand/rand.h b/crypto/rand/rand.h
index e17aa7a9f7..b2f6146a0e 100644
--- a/crypto/rand/rand.h
+++ b/crypto/rand/rand.h
@@ -61,6 +61,11 @@
#include <stdlib.h>
#include <openssl/ossl_typ.h>
+#include <openssl/opensslconf.h>
+
+#if defined(OPENSSL_SYS_WINDOWS)
+#include <windows.h>
+#endif
#ifdef __cplusplus
extern "C" {
@@ -98,7 +103,7 @@ int RAND_egd(const char *path);
int RAND_egd_bytes(const char *path,int bytes);
int RAND_poll(void);
-#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32)
+#if defined(OPENSSL_SYS_WINDOWS)
void RAND_screen(void);
int RAND_event(UINT, WPARAM, LPARAM);