diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-04-02 17:24:09 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-04-02 18:17:52 +0300 |
commit | 07f98c44311464fd7e5f94f569f847e43a0be4a2 (patch) | |
tree | b322c829ec541c6986ee98012a047c0eceb6be29 /boost | |
parent | 3aa3d170a0f05a2f808f07446f869f38328466e5 (diff) |
WaE: -Wundef fixes
Change-Id: I0ffb5dc708b565caa52811885ac3724404f6466a
Diffstat (limited to 'boost')
-rw-r--r-- | boost/boost.wundef.patch.1 | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/boost/boost.wundef.patch.1 b/boost/boost.wundef.patch.1 index 981492858edc..cbdac4569bbc 100644 --- a/boost/boost.wundef.patch.1 +++ b/boost/boost.wundef.patch.1 @@ -9,3 +9,46 @@ namespace { multi_array_types::extent_gen extents; multi_array_types::index_gen indices; +--- a/boost/interprocess/detail/workaround.hpp ++++ a/boost/interprocess/detail/workaround.hpp +@@ -29,19 +29,19 @@ + + #include <unistd.h> + +- #if ((_POSIX_THREAD_PROCESS_SHARED - 0) > 0) ++ #if defined(_POSIX_THREAD_PROCESS_SHARED) && ((_POSIX_THREAD_PROCESS_SHARED - 0) > 0) + //Cygwin defines _POSIX_THREAD_PROCESS_SHARED but does not implement it. + //Mac Os X >= Leopard defines _POSIX_THREAD_PROCESS_SHARED but does not seems to work. + # if !defined(__CYGWIN__) && !defined(__APPLE__) + # define BOOST_INTERPROCESS_POSIX_PROCESS_SHARED + # endif + #endif + +- #if ((_POSIX_BARRIERS - 0) > 0) ++ #if defined(_POSIX_BARRIERS) && ((_POSIX_BARRIERS - 0) > 0) + # define BOOST_INTERPROCESS_POSIX_BARRIERS + # endif + +- #if ((_POSIX_SEMAPHORES - 0) > 0) ++ #if defined(_POSIX_SEMAPHORES) && ((_POSIX_SEMAPHORES - 0) > 0) + # define BOOST_INTERPROCESS_POSIX_NAMED_SEMAPHORES + # if defined(__CYGWIN__) + #define BOOST_INTERPROCESS_POSIX_SEMAPHORES_NO_UNLINK +@@ -67,7 +67,7 @@ + # define BOOST_INTERPROCESS_XSI_SHARED_MEMORY_OBJECTS + #endif + +- #if ((_POSIX_SHARED_MEMORY_OBJECTS - 0) > 0) ++ #if defined(_POSIX_SHARED_MEMORY_OBJECTS) && ((_POSIX_SHARED_MEMORY_OBJECTS - 0) > 0) + # define BOOST_INTERPROCESS_POSIX_SHARED_MEMORY_OBJECTS + #else + //VMS and MACOS don't define it but the have shm_open/close interface +@@ -88,7 +88,7 @@ + //# define BOOST_INTERPROCESS_XSI_SHARED_MEMORY_OBJECTS_ONLY + #endif + +- #if ((_POSIX_TIMEOUTS - 0) > 0) ++ #if defined(_POSIX_TIMEOUTS) && ((_POSIX_TIMEOUTS - 0) > 0) + # define BOOST_INTERPROCESS_POSIX_TIMEOUTS + #endif + |