From 0fa05fcc47b6eb4750cad95830d62557d76d2816 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 15 Jul 2011 15:16:30 +0300 Subject: Don't let define min() and max() as macros MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fridrich Štrba Signed-off-by: Jan Holesovsky Signed-off-by: Markus Mohrhard --- boost/boost.windows.patch | 12 ++++++++++++ boost/makefile.mk | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 boost/boost.windows.patch diff --git a/boost/boost.windows.patch b/boost/boost.windows.patch new file mode 100644 index 000000000000..c0054c8de244 --- /dev/null +++ b/boost/boost.windows.patch @@ -0,0 +1,12 @@ +--- misc/build/boost_1_44_0/boost/pool/detail/mutex.hpp ++++ misc/build/boost_1_44_0/boost/pool/detail/mutex.hpp +@@ -46,7 +46,9 @@ + + #ifndef BOOST_NO_MT + # ifdef BOOST_WINDOWS ++# define NOMINMAX + # include ++# undef NOMINMAX + # endif + # if defined(_POSIX_THREADS) || defined(BOOST_HAS_PTHREADS) + # include diff --git a/boost/makefile.mk b/boost/makefile.mk index b1f054b64e67..b9feb7b9540a 100644 --- a/boost/makefile.mk +++ b/boost/makefile.mk @@ -60,6 +60,8 @@ PATCH_FILES+=unordered_map-doesnt-support-cp-ctor.patch #http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47679 PATCH_FILES+=boost.gcc47679.patch +PATCH_FILES+=boost.windows.patch + ADDITIONAL_FILES= \ libs/thread/src/win32/makefile.mk -- cgit v1.2.3