diff options
author | Ulf Möller <ulf@openssl.org> | 2005-03-19 11:39:17 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2005-03-19 11:39:17 +0000 |
commit | 130db968b889401f079089c70d3d098b3cd80af1 (patch) | |
tree | e0ee65bc56dfad6637f59bb40be31de984656254 /crypto/rand/rand_win.c | |
parent | 8d274837e5a23ac8eba410cf533578daeb8cdb5b (diff) |
Use Windows randomness code on Cygwin
Diffstat (limited to 'crypto/rand/rand_win.c')
-rw-r--r-- | crypto/rand/rand_win.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rand/rand_win.c b/crypto/rand/rand_win.c index aaea92c8fd..a7c2c9df74 100644 --- a/crypto/rand/rand_win.c +++ b/crypto/rand/rand_win.c @@ -113,7 +113,7 @@ #include <openssl/rand.h> #include "rand_lcl.h" -#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) +#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_WIN32_CYGWIN) #include <windows.h> #ifndef _WIN32_WINNT # define _WIN32_WINNT 0x0400 @@ -680,7 +680,7 @@ static void readtimer(void) static void readscreen(void) { -#ifndef OPENSSL_SYS_WINCE +#if !defined(OPENSSL_SYS_WINCE) && !defined(OPENSSL_SYS_WIN32_CYGWIN) HDC hScrDC; /* screen DC */ HDC hMemDC; /* memory DC */ HBITMAP hBitmap; /* handle for our bitmap */ |