forked from msys2/MINGW-packages
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Boost 1.59: fix uuid header seed_rng.h MinGW build error.
* Add winapi headers when building on windows not just MSVC. See boostorg/uuid#6 for more information.
- Loading branch information
Wayne Stambaugh
committed
Oct 21, 2015
1 parent
aec46fa
commit 8b6ac8b
Showing
2 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
mingw-w64-boost/boost-1.59.0-mingw-uuid-seed-rng-header.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- a/boost/uuid/seed_rng.hpp Fri May 15 12:55:19 2015 | ||
+++ b/boost/uuid/seed_rng.hpp Tue Oct 20 09:03:44 2015 | ||
@@ -40,11 +40,14 @@ | ||
#if defined(_MSC_VER) | ||
# pragma warning(push) // Save warning settings. | ||
# pragma warning(disable : 4996) // Disable deprecated std::fopen | ||
+# pragma comment(lib, "advapi32.lib") | ||
+#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> | ||
-# pragma comment(lib, "advapi32.lib") | ||
#else | ||
# include <sys/time.h> // for gettimeofday | ||
# include <sys/types.h> // for pid_t |