VS 6: Define _WIN32_WINNT to load wincrypt.h correctly
This commit is contained in:
parent
e1b0a11dd4
commit
eb6f461fc1
|
@ -9,6 +9,9 @@
|
||||||
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
See the License for more information.
|
See the License for more information.
|
||||||
============================================================================*/
|
============================================================================*/
|
||||||
|
#if defined(_MSC_VER) && _MSC_VER < 1300
|
||||||
|
# define _WIN32_WINNT 0x0400 /* for wincrypt.h */
|
||||||
|
#endif
|
||||||
#include "cmSystemTools.h"
|
#include "cmSystemTools.h"
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -2236,6 +2239,9 @@ bool cmSystemTools::FileTimeSet(const char* fname, cmSystemToolsFileTime* t)
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
# ifndef CRYPT_SILENT
|
||||||
|
# define CRYPT_SILENT 0x40 /* Not defined by VS 6 version of header. */
|
||||||
|
# endif
|
||||||
static int WinCryptRandom(void* data, size_t size)
|
static int WinCryptRandom(void* data, size_t size)
|
||||||
{
|
{
|
||||||
int result = 0;
|
int result = 0;
|
||||||
|
|
Loading…
Reference in New Issue