diff --git a/XML/src/ParserEngine.cpp b/XML/src/ParserEngine.cpp index 8151bcd5a..7cb28a141 100644 --- a/XML/src/ParserEngine.cpp +++ b/XML/src/ParserEngine.cpp @@ -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 diff --git a/XML/src/xmlparse.cpp b/XML/src/xmlparse.cpp index 63222776d..827a48c6f 100644 --- a/XML/src/xmlparse.cpp +++ b/XML/src/xmlparse.cpp @@ -24,6 +24,9 @@ #include "ascii.h" #include "Poco/XML/expat.h" +#if defined(_WIN32_WCE) +#include +#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(); }