summaryrefslogtreecommitdiffstats
path: root/contrib/src/boost/uuid/seed_rng.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/src/boost/uuid/seed_rng.hpp')
-rw-r--r--contrib/src/boost/uuid/seed_rng.hpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/contrib/src/boost/uuid/seed_rng.hpp b/contrib/src/boost/uuid/seed_rng.hpp
index 5299b04..388a8f9 100644
--- a/contrib/src/boost/uuid/seed_rng.hpp
+++ b/contrib/src/boost/uuid/seed_rng.hpp
@@ -40,14 +40,18 @@
#if defined(_MSC_VER)
# pragma warning(push) // Save warning settings.
# pragma warning(disable : 4996) // Disable deprecated std::fopen
+#if defined(_WIN32_WCE)
+# pragma comment(lib, "coredll.lib")
+#else
# pragma comment(lib, "advapi32.lib")
#endif
+#endif
#if defined(BOOST_WINDOWS)
# include <boost/detail/winapi/crypt.hpp> // for CryptAcquireContextA, CryptGenRandom, CryptReleaseContext
# include <boost/detail/winapi/timers.hpp>
-# include <boost/detail/winapi/process.hpp>
-# include <boost/detail/winapi/thread.hpp>
+# include <boost/detail/winapi/get_current_process_id.hpp>
+# include <boost/detail/winapi/get_current_thread_id.hpp>
#else
# include <sys/time.h> // for gettimeofday
# include <sys/types.h> // for pid_t
@@ -92,7 +96,7 @@ public:
, random_(NULL)
{
#if defined(BOOST_WINDOWS)
- if (!boost::detail::winapi::CryptAcquireContextA(
+ if (!boost::detail::winapi::CryptAcquireContextW(
&random_,
NULL,
NULL,
@@ -107,7 +111,7 @@ public:
std::memset(rd_, 0, sizeof(rd_));
}
-
+
~seed_rng() BOOST_NOEXCEPT
{
if (random_) {