mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 03:20:11 +01:00
-added Windows Embedded Compact 2013 support
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
#include "Poco/Random.h"
|
||||
#include "Poco/RandomStream.h"
|
||||
#include <ctime>
|
||||
#if defined(_WIN32_WCE)
|
||||
#if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
|
||||
#include "wce_time.h"
|
||||
#endif
|
||||
|
||||
@@ -175,7 +175,7 @@ Random::Random(int stateSize)
|
||||
poco_assert (BREAK_0 <= stateSize && stateSize <= BREAK_4);
|
||||
|
||||
_pBuffer = new char[stateSize];
|
||||
#if defined(_WIN32_WCE)
|
||||
#if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
|
||||
initState((UInt32) wceex_time(NULL), _pBuffer, stateSize);
|
||||
#else
|
||||
initState((UInt32) std::time(NULL), _pBuffer, stateSize);
|
||||
|
||||
Reference in New Issue
Block a user