xmlparse fix for WinCE

This commit is contained in:
Guenter Obiltschnig
2013-05-24 21:45:18 +02:00
parent d12c06c5d6
commit 6ca49eb7f6
2 changed files with 8 additions and 1 deletions

View File

@@ -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

View File

@@ -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();
} }