summaryrefslogtreecommitdiffstats
path: root/contrib/src/boost/uuid/seed_rng.hpp
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-01-13 11:58:41 (GMT)
committerStefan Radomski <github@mintwerk.de>2017-01-13 11:58:41 (GMT)
commit0aa0fe08dc308c94379c47d0bf9745e341cb4c81 (patch)
tree514b009d3d1658af6988e059874014fc26fc0395 /contrib/src/boost/uuid/seed_rng.hpp
parent6952ce94491e4b7bc2acded0788e4609ca2c76e8 (diff)
downloaduscxml-0aa0fe08dc308c94379c47d0bf9745e341cb4c81.zip
uscxml-0aa0fe08dc308c94379c47d0bf9745e341cb4c81.tar.gz
uscxml-0aa0fe08dc308c94379c47d0bf9745e341cb4c81.tar.bz2
Updated boost headers
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_) {