1 --- a/boost/multi_array/base.hpp 2013-04-01 13:53:59.565375431 +0200
2 +++ b/boost/multi_array/base.hpp 2013-04-01 13:54:03.230375652 +0200
4 // object creation in small-memory environments. Thus, the objects
5 // can be left undefined by defining BOOST_MULTI_ARRAY_NO_GENERATORS
6 // before loading multi_array.hpp.
7 -#if !BOOST_MULTI_ARRAY_NO_GENERATORS
8 +#ifndef BOOST_MULTI_ARRAY_NO_GENERATORS
10 multi_array_types::extent_gen extents;
11 multi_array_types::index_gen indices;
12 --- a/boost/interprocess/detail/workaround.hpp
13 +++ a/boost/interprocess/detail/workaround.hpp
18 - #if ((_POSIX_THREAD_PROCESS_SHARED - 0) > 0)
19 + #if defined(_POSIX_THREAD_PROCESS_SHARED) && ((_POSIX_THREAD_PROCESS_SHARED - 0) > 0)
20 //Cygwin defines _POSIX_THREAD_PROCESS_SHARED but does not implement it.
21 //Mac Os X >= Leopard defines _POSIX_THREAD_PROCESS_SHARED but does not seems to work.
22 # if !defined(__CYGWIN__) && !defined(__APPLE__)
23 # define BOOST_INTERPROCESS_POSIX_PROCESS_SHARED
27 - #if ((_POSIX_BARRIERS - 0) > 0)
28 + #if defined(_POSIX_BARRIERS) && ((_POSIX_BARRIERS - 0) > 0)
29 # define BOOST_INTERPROCESS_POSIX_BARRIERS
32 - #if ((_POSIX_SEMAPHORES - 0) > 0)
33 + #if defined(_POSIX_SEMAPHORES) && ((_POSIX_SEMAPHORES - 0) > 0)
34 # define BOOST_INTERPROCESS_POSIX_NAMED_SEMAPHORES
35 # if defined(__CYGWIN__)
36 #define BOOST_INTERPROCESS_POSIX_SEMAPHORES_NO_UNLINK
38 # define BOOST_INTERPROCESS_XSI_SHARED_MEMORY_OBJECTS
41 - #if ((_POSIX_SHARED_MEMORY_OBJECTS - 0) > 0)
42 + #if defined(_POSIX_SHARED_MEMORY_OBJECTS) && ((_POSIX_SHARED_MEMORY_OBJECTS - 0) > 0)
43 # define BOOST_INTERPROCESS_POSIX_SHARED_MEMORY_OBJECTS
45 //VMS and MACOS don't define it but the have shm_open/close interface
47 //# define BOOST_INTERPROCESS_XSI_SHARED_MEMORY_OBJECTS_ONLY
50 - #if ((_POSIX_TIMEOUTS - 0) > 0)
51 + #if defined(_POSIX_TIMEOUTS) && ((_POSIX_TIMEOUTS - 0) > 0)
52 # define BOOST_INTERPROCESS_POSIX_TIMEOUTS