mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 02:53:10 +01:00
xmlparse fix for WinCE
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// ParserEngine.cpp
|
// ParserEngine.cpp
|
||||||
//
|
//
|
||||||
// $Id: //poco/1.4/XML/src/ParserEngine.cpp#1 $
|
// $Id: //poco/1.4/XML/src/ParserEngine.cpp#2 $
|
||||||
//
|
//
|
||||||
// Library: XML
|
// Library: XML
|
||||||
// Package: XML
|
// Package: XML
|
||||||
|
|||||||
@@ -24,6 +24,9 @@
|
|||||||
|
|
||||||
#include "ascii.h"
|
#include "ascii.h"
|
||||||
#include "Poco/XML/expat.h"
|
#include "Poco/XML/expat.h"
|
||||||
|
#if defined(_WIN32_WCE)
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef XML_UNICODE
|
#ifdef XML_UNICODE
|
||||||
#define XML_ENCODE_MAX XML_UTF16_ENCODE_MAX
|
#define XML_ENCODE_MAX XML_UTF16_ENCODE_MAX
|
||||||
@@ -693,7 +696,11 @@ static const XML_Char implicitContext[] = {
|
|||||||
static unsigned long
|
static unsigned long
|
||||||
generate_hash_secret_salt(void)
|
generate_hash_secret_salt(void)
|
||||||
{
|
{
|
||||||
|
#if defined(_WIN32_WCE)
|
||||||
|
unsigned int seed = GetTickCount();
|
||||||
|
#else
|
||||||
unsigned int seed = time(NULL) % UINT_MAX;
|
unsigned int seed = time(NULL) % UINT_MAX;
|
||||||
|
#endif
|
||||||
srand(seed);
|
srand(seed);
|
||||||
return rand();
|
return rand();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user