Changes between 0.9.6m and 0.9.6n [XX XXX XXXX]
- *)
+ *) Use Windows randomness collection on Cygwin.
+ [Ulf Möller]
Changes between 0.9.6l and 0.9.6m [17 Mar 2004]
#include <openssl/rand.h>
#include "rand_lcl.h"
-#if defined(WINDOWS) || defined(WIN32)
+#if defined(WINDOWS) || defined(WIN32) || defined(__CYGWIN32__)
#include <windows.h>
#ifndef _WIN32_WINNT
# define _WIN32_WINNT 0x0400
static void readscreen(void)
{
+#ifndef __CYGWIN32__
HDC hScrDC; /* screen DC */
HDC hMemDC; /* memory DC */
HBITMAP hBitmap; /* handle for our bitmap */
DeleteObject(hBitmap);
DeleteDC(hMemDC);
DeleteDC(hScrDC);
+#endif
}
#else /* Unix version */