aboutsummaryrefslogtreecommitdiffstats
path: root/include/openssl/rand.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/openssl/rand.h')
-rw-r--r--include/openssl/rand.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/openssl/rand.h b/include/openssl/rand.h
index d0f8eabe0a..8dab1a00fb 100644
--- a/include/openssl/rand.h
+++ b/include/openssl/rand.h
@@ -14,10 +14,6 @@
# include <openssl/ossl_typ.h>
# include <openssl/e_os2.h>
-# if defined(OPENSSL_SYS_WINDOWS)
-# include <windows.h>
-# endif
-
#ifdef __cplusplus
extern "C" {
#endif
@@ -65,7 +61,8 @@ int RAND_egd_bytes(const char *path, int bytes);
# endif
int RAND_poll(void);
-#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32)
+#if defined(_WIN32) && (defined(BASETYPES) || defined(_WINDEF_H))
+/* application has to include <windows.h> in order to use these */
DEPRECATEDIN_1_1_0(void RAND_screen(void))
DEPRECATEDIN_1_1_0(int RAND_event(UINT, WPARAM, LPARAM))
#endif