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