From ce5733d260bca2c6010a513a6b0d77fb59536b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Fri, 14 Feb 2014 21:57:08 +0100 Subject: [PATCH] Sync'ed master with latest develop --- include/boost/interprocess/allocators/adaptive_pool.hpp | 2 +- include/boost/interprocess/allocators/allocator.hpp | 2 +- .../boost/interprocess/allocators/cached_adaptive_pool.hpp | 2 +- .../boost/interprocess/allocators/cached_node_allocator.hpp | 2 +- .../interprocess/allocators/detail/adaptive_node_pool.hpp | 2 +- include/boost/interprocess/allocators/detail/node_pool.hpp | 2 +- include/boost/interprocess/allocators/detail/node_tools.hpp | 2 +- include/boost/interprocess/allocators/node_allocator.hpp | 2 +- .../boost/interprocess/allocators/private_adaptive_pool.hpp | 2 +- .../interprocess/allocators/private_node_allocator.hpp | 2 +- include/boost/interprocess/containers/allocation_type.hpp | 2 +- include/boost/interprocess/containers/containers_fwd.hpp | 2 +- include/boost/interprocess/containers/deque.hpp | 2 +- include/boost/interprocess/containers/flat_map.hpp | 2 +- include/boost/interprocess/containers/flat_set.hpp | 2 +- include/boost/interprocess/containers/list.hpp | 2 +- include/boost/interprocess/containers/map.hpp | 2 +- include/boost/interprocess/containers/pair.hpp | 2 +- include/boost/interprocess/containers/set.hpp | 2 +- include/boost/interprocess/containers/slist.hpp | 2 +- include/boost/interprocess/containers/stable_vector.hpp | 2 +- include/boost/interprocess/containers/string.hpp | 2 +- include/boost/interprocess/containers/vector.hpp | 2 +- include/boost/interprocess/containers/version_type.hpp | 2 +- include/boost/interprocess/detail/file_locking_helpers.hpp | 2 +- include/boost/interprocess/detail/in_place_interface.hpp | 2 +- include/boost/interprocess/detail/intermodule_singleton.hpp | 2 +- .../interprocess/detail/intermodule_singleton_common.hpp | 2 +- include/boost/interprocess/detail/intersegment_ptr.hpp | 2 +- include/boost/interprocess/detail/managed_global_memory.hpp | 2 +- include/boost/interprocess/detail/managed_memory_impl.hpp | 2 +- .../interprocess/detail/managed_multi_shared_memory.hpp | 2 +- include/boost/interprocess/detail/min_max.hpp | 2 +- include/boost/interprocess/detail/mpl.hpp | 2 +- .../boost/interprocess/detail/multi_segment_services.hpp | 2 +- include/boost/interprocess/detail/named_proxy.hpp | 2 +- include/boost/interprocess/detail/pointer_type.hpp | 2 +- .../interprocess/detail/portable_intermodule_singleton.hpp | 2 +- include/boost/interprocess/detail/preprocessor.hpp | 2 +- include/boost/interprocess/detail/robust_emulation.hpp | 2 +- .../boost/interprocess/detail/segment_manager_helper.hpp | 2 +- include/boost/interprocess/detail/transform_iterator.hpp | 2 +- include/boost/interprocess/detail/type_traits.hpp | 2 +- include/boost/interprocess/detail/utilities.hpp | 2 +- .../boost/interprocess/detail/variadic_templates_tools.hpp | 2 +- include/boost/interprocess/detail/win32_api.hpp | 2 +- .../interprocess/detail/windows_intermodule_singleton.hpp | 2 +- include/boost/interprocess/errors.hpp | 2 +- include/boost/interprocess/exceptions.hpp | 2 +- include/boost/interprocess/interprocess_fwd.hpp | 2 +- include/boost/interprocess/managed_external_buffer.hpp | 2 +- include/boost/interprocess/managed_heap_memory.hpp | 2 +- include/boost/interprocess/managed_mapped_file.hpp | 2 +- include/boost/interprocess/managed_shared_memory.hpp | 2 +- .../boost/interprocess/managed_windows_shared_memory.hpp | 2 +- include/boost/interprocess/managed_xsi_shared_memory.hpp | 2 +- .../boost/interprocess/mem_algo/detail/mem_algo_common.hpp | 2 +- .../interprocess/mem_algo/detail/multi_simple_seq_fit.hpp | 2 +- .../mem_algo/detail/multi_simple_seq_fit_impl.hpp | 2 +- .../interprocess/mem_algo/detail/simple_seq_fit_impl.hpp | 2 +- include/boost/interprocess/mem_algo/rbtree_best_fit.hpp | 5 ++--- include/boost/interprocess/mem_algo/simple_seq_fit.hpp | 2 +- include/boost/interprocess/offset_ptr.hpp | 2 +- include/boost/interprocess/permissions.hpp | 2 +- include/boost/interprocess/segment_manager.hpp | 2 +- include/boost/interprocess/smart_ptr/deleter.hpp | 2 +- .../boost/interprocess/smart_ptr/detail/bad_weak_ptr.hpp | 2 +- .../boost/interprocess/smart_ptr/detail/shared_count.hpp | 2 +- .../smart_ptr/detail/sp_counted_base_atomic.hpp | 2 +- .../boost/interprocess/smart_ptr/detail/sp_counted_impl.hpp | 2 +- .../interprocess/sync/detail/condition_algorithm_8a.hpp | 3 +-- include/boost/interprocess/sync/file_lock.hpp | 2 +- include/boost/interprocess/sync/interprocess_condition.hpp | 2 +- .../boost/interprocess/sync/interprocess_condition_any.hpp | 2 +- include/boost/interprocess/sync/interprocess_mutex.hpp | 2 +- .../interprocess/sync/interprocess_recursive_mutex.hpp | 2 +- include/boost/interprocess/sync/interprocess_semaphore.hpp | 2 +- .../boost/interprocess/sync/interprocess_sharable_mutex.hpp | 2 +- .../interprocess/sync/interprocess_upgradable_mutex.hpp | 2 +- include/boost/interprocess/sync/lock_options.hpp | 2 +- include/boost/interprocess/sync/mutex_family.hpp | 2 +- include/boost/interprocess/sync/named_condition.hpp | 2 +- include/boost/interprocess/sync/named_condition_any.hpp | 2 +- include/boost/interprocess/sync/named_mutex.hpp | 2 +- include/boost/interprocess/sync/named_recursive_mutex.hpp | 2 +- include/boost/interprocess/sync/named_semaphore.hpp | 2 +- include/boost/interprocess/sync/named_sharable_mutex.hpp | 2 +- include/boost/interprocess/sync/named_upgradable_mutex.hpp | 2 +- include/boost/interprocess/sync/null_mutex.hpp | 2 +- include/boost/interprocess/sync/posix/condition.hpp | 2 +- include/boost/interprocess/sync/posix/mutex.hpp | 2 +- include/boost/interprocess/sync/posix/named_mutex.hpp | 2 +- include/boost/interprocess/sync/posix/named_semaphore.hpp | 2 +- include/boost/interprocess/sync/posix/pthread_helpers.hpp | 2 +- include/boost/interprocess/sync/posix/semaphore.hpp | 2 +- include/boost/interprocess/sync/scoped_lock.hpp | 2 +- include/boost/interprocess/sync/sharable_lock.hpp | 2 +- include/boost/interprocess/sync/shm/named_condition.hpp | 2 +- include/boost/interprocess/sync/shm/named_condition_any.hpp | 2 +- include/boost/interprocess/sync/shm/named_mutex.hpp | 2 +- .../boost/interprocess/sync/shm/named_recursive_mutex.hpp | 2 +- include/boost/interprocess/sync/shm/named_semaphore.hpp | 2 +- .../boost/interprocess/sync/shm/named_upgradable_mutex.hpp | 2 +- include/boost/interprocess/sync/spin/condition.hpp | 4 +--- include/boost/interprocess/sync/spin/mutex.hpp | 2 +- include/boost/interprocess/sync/spin/recursive_mutex.hpp | 2 +- include/boost/interprocess/sync/spin/semaphore.hpp | 2 +- include/boost/interprocess/sync/spin/wait.hpp | 4 ++-- include/boost/interprocess/sync/upgradable_lock.hpp | 2 +- include/boost/interprocess/sync/windows/condition.hpp | 6 +----- include/boost/interprocess/sync/windows/mutex.hpp | 2 +- include/boost/interprocess/sync/windows/named_condition.hpp | 2 +- .../boost/interprocess/sync/windows/named_condition_any.hpp | 5 +++-- include/boost/interprocess/sync/windows/named_mutex.hpp | 2 +- .../interprocess/sync/windows/named_recursive_mutex.hpp | 2 +- include/boost/interprocess/sync/windows/named_semaphore.hpp | 2 +- include/boost/interprocess/sync/windows/named_sync.hpp | 2 +- include/boost/interprocess/sync/windows/recursive_mutex.hpp | 2 +- include/boost/interprocess/sync/windows/semaphore.hpp | 2 +- include/boost/interprocess/sync/windows/sync_utils.hpp | 2 +- .../interprocess/sync/windows/winapi_mutex_wrapper.hpp | 2 +- .../interprocess/sync/windows/winapi_semaphore_wrapper.hpp | 2 +- test/allocator_v1.hpp | 2 +- test/dummy_test_allocator.hpp | 2 +- test/expand_bwd_test_allocator.hpp | 2 +- test/heap_allocator_v1.hpp | 2 +- 126 files changed, 130 insertions(+), 137 deletions(-) diff --git a/include/boost/interprocess/allocators/adaptive_pool.hpp b/include/boost/interprocess/allocators/adaptive_pool.hpp index ca54802..8a2d61e 100644 --- a/include/boost/interprocess/allocators/adaptive_pool.hpp +++ b/include/boost/interprocess/allocators/adaptive_pool.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_ADAPTIVE_POOL_HPP #define BOOST_INTERPROCESS_ADAPTIVE_POOL_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/allocators/allocator.hpp b/include/boost/interprocess/allocators/allocator.hpp index 5901a0f..497cbd4 100644 --- a/include/boost/interprocess/allocators/allocator.hpp +++ b/include/boost/interprocess/allocators/allocator.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_ALLOCATOR_HPP #define BOOST_INTERPROCESS_ALLOCATOR_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/allocators/cached_adaptive_pool.hpp b/include/boost/interprocess/allocators/cached_adaptive_pool.hpp index c616673..2a2d7b8 100644 --- a/include/boost/interprocess/allocators/cached_adaptive_pool.hpp +++ b/include/boost/interprocess/allocators/cached_adaptive_pool.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_CACHED_ADAPTIVE_POOL_HPP #define BOOST_INTERPROCESS_CACHED_ADAPTIVE_POOL_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/allocators/cached_node_allocator.hpp b/include/boost/interprocess/allocators/cached_node_allocator.hpp index 2b3903e..ed1bee2 100644 --- a/include/boost/interprocess/allocators/cached_node_allocator.hpp +++ b/include/boost/interprocess/allocators/cached_node_allocator.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_CACHED_NODE_ALLOCATOR_HPP #define BOOST_INTERPROCESS_CACHED_NODE_ALLOCATOR_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/allocators/detail/adaptive_node_pool.hpp b/include/boost/interprocess/allocators/detail/adaptive_node_pool.hpp index dd69790..a3afa8e 100644 --- a/include/boost/interprocess/allocators/detail/adaptive_node_pool.hpp +++ b/include/boost/interprocess/allocators/detail/adaptive_node_pool.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_ADAPTIVE_NODE_POOL_HPP #define BOOST_INTERPROCESS_DETAIL_ADAPTIVE_NODE_POOL_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/allocators/detail/node_pool.hpp b/include/boost/interprocess/allocators/detail/node_pool.hpp index 1b8a9fb..e67d321 100644 --- a/include/boost/interprocess/allocators/detail/node_pool.hpp +++ b/include/boost/interprocess/allocators/detail/node_pool.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_NODE_POOL_HPP #define BOOST_INTERPROCESS_DETAIL_NODE_POOL_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/allocators/detail/node_tools.hpp b/include/boost/interprocess/allocators/detail/node_tools.hpp index e7115ec..e9fec38 100644 --- a/include/boost/interprocess/allocators/detail/node_tools.hpp +++ b/include/boost/interprocess/allocators/detail/node_tools.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_NODE_TOOLS_HPP #define BOOST_INTERPROCESS_DETAIL_NODE_TOOLS_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/allocators/node_allocator.hpp b/include/boost/interprocess/allocators/node_allocator.hpp index df382b4..89404bb 100644 --- a/include/boost/interprocess/allocators/node_allocator.hpp +++ b/include/boost/interprocess/allocators/node_allocator.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_NODE_ALLOCATOR_HPP #define BOOST_INTERPROCESS_NODE_ALLOCATOR_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/allocators/private_adaptive_pool.hpp b/include/boost/interprocess/allocators/private_adaptive_pool.hpp index b9d03e6..fd7ad7c 100644 --- a/include/boost/interprocess/allocators/private_adaptive_pool.hpp +++ b/include/boost/interprocess/allocators/private_adaptive_pool.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_PRIVATE_ADAPTIVE_POOL_HPP #define BOOST_INTERPROCESS_PRIVATE_ADAPTIVE_POOL_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/allocators/private_node_allocator.hpp b/include/boost/interprocess/allocators/private_node_allocator.hpp index 4be2c20..93a4750 100644 --- a/include/boost/interprocess/allocators/private_node_allocator.hpp +++ b/include/boost/interprocess/allocators/private_node_allocator.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_PRIVATE_NODE_ALLOCATOR_HPP #define BOOST_INTERPROCESS_PRIVATE_NODE_ALLOCATOR_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/containers/allocation_type.hpp b/include/boost/interprocess/containers/allocation_type.hpp index c871d57..eea431b 100644 --- a/include/boost/interprocess/containers/allocation_type.hpp +++ b/include/boost/interprocess/containers/allocation_type.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_CONTAINERS_ALLOCATION_TYPE_HPP #define BOOST_INTERPROCESS_CONTAINERS_ALLOCATION_TYPE_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/containers/containers_fwd.hpp b/include/boost/interprocess/containers/containers_fwd.hpp index 2f1dfd5..28cd0f1 100644 --- a/include/boost/interprocess/containers/containers_fwd.hpp +++ b/include/boost/interprocess/containers/containers_fwd.hpp @@ -13,7 +13,7 @@ /// @cond -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/containers/deque.hpp b/include/boost/interprocess/containers/deque.hpp index a40db80..66122e2 100644 --- a/include/boost/interprocess/containers/deque.hpp +++ b/include/boost/interprocess/containers/deque.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_CONTAINERS_DEQUE_HPP #define BOOST_INTERPROCESS_CONTAINERS_DEQUE_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/containers/flat_map.hpp b/include/boost/interprocess/containers/flat_map.hpp index 744d6e9..38b04ac 100644 --- a/include/boost/interprocess/containers/flat_map.hpp +++ b/include/boost/interprocess/containers/flat_map.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_CONTAINERS_FLAT_MAP_HPP #define BOOST_INTERPROCESS_CONTAINERS_FLAT_MAP_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/containers/flat_set.hpp b/include/boost/interprocess/containers/flat_set.hpp index 51c4992..45b42fd 100644 --- a/include/boost/interprocess/containers/flat_set.hpp +++ b/include/boost/interprocess/containers/flat_set.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_CONTAINERS_FLAT_SET_HPP #define BOOST_INTERPROCESS_CONTAINERS_FLAT_SET_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/containers/list.hpp b/include/boost/interprocess/containers/list.hpp index 0e855ef..50f0ff0 100644 --- a/include/boost/interprocess/containers/list.hpp +++ b/include/boost/interprocess/containers/list.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_CONTAINERS_LIST_HPP #define BOOST_INTERPROCESS_CONTAINERS_LIST_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/containers/map.hpp b/include/boost/interprocess/containers/map.hpp index 4efed89..ca00b20 100644 --- a/include/boost/interprocess/containers/map.hpp +++ b/include/boost/interprocess/containers/map.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_CONTAINERS_MAP_HPP #define BOOST_INTERPROCESS_CONTAINERS_MAP_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/containers/pair.hpp b/include/boost/interprocess/containers/pair.hpp index 2ca631d..65526ab 100644 --- a/include/boost/interprocess/containers/pair.hpp +++ b/include/boost/interprocess/containers/pair.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_CONTAINERS_PAIR_HPP #define BOOST_INTERPROCESS_CONTAINERS_PAIR_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/containers/set.hpp b/include/boost/interprocess/containers/set.hpp index 09ea6c1..6979204 100644 --- a/include/boost/interprocess/containers/set.hpp +++ b/include/boost/interprocess/containers/set.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_CONTAINERS_SET_HPP #define BOOST_INTERPROCESS_CONTAINERS_SET_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/containers/slist.hpp b/include/boost/interprocess/containers/slist.hpp index c3e1744..b511d06 100644 --- a/include/boost/interprocess/containers/slist.hpp +++ b/include/boost/interprocess/containers/slist.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_CONTAINERS_SLIST_HPP #define BOOST_INTERPROCESS_CONTAINERS_SLIST_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/containers/stable_vector.hpp b/include/boost/interprocess/containers/stable_vector.hpp index 530056d..4a59b81 100644 --- a/include/boost/interprocess/containers/stable_vector.hpp +++ b/include/boost/interprocess/containers/stable_vector.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_CONTAINERS_STABLE_VECTOR_HPP #define BOOST_INTERPROCESS_CONTAINERS_STABLE_VECTOR_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/containers/string.hpp b/include/boost/interprocess/containers/string.hpp index 805bfe4..e7af2fa 100644 --- a/include/boost/interprocess/containers/string.hpp +++ b/include/boost/interprocess/containers/string.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_CONTAINERS_STRING_HPP #define BOOST_INTERPROCESS_CONTAINERS_STRING_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/containers/vector.hpp b/include/boost/interprocess/containers/vector.hpp index bfae4f8..3f10e01 100644 --- a/include/boost/interprocess/containers/vector.hpp +++ b/include/boost/interprocess/containers/vector.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_CONTAINERS_VECTOR_HPP #define BOOST_INTERPROCESS_CONTAINERS_VECTOR_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/containers/version_type.hpp b/include/boost/interprocess/containers/version_type.hpp index 92ef49f..4516e8c 100644 --- a/include/boost/interprocess/containers/version_type.hpp +++ b/include/boost/interprocess/containers/version_type.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_CONTAINERS_VERSION_TYPE_HPP #define BOOST_INTERPROCESS_CONTAINERS_VERSION_TYPE_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/detail/file_locking_helpers.hpp b/include/boost/interprocess/detail/file_locking_helpers.hpp index a6d0af6..59ff7a0 100644 --- a/include/boost/interprocess/detail/file_locking_helpers.hpp +++ b/include/boost/interprocess/detail/file_locking_helpers.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_FILE_LOCKING_HELPERS_HPP #define BOOST_INTERPROCESS_FILE_LOCKING_HELPERS_HPP -#if defined(_MSC_VER) +#if defined(_MSC_VER)&&(_MSC_VER>=1200) #pragma once #endif diff --git a/include/boost/interprocess/detail/in_place_interface.hpp b/include/boost/interprocess/detail/in_place_interface.hpp index 1315a11..7c0966c 100644 --- a/include/boost/interprocess/detail/in_place_interface.hpp +++ b/include/boost/interprocess/detail/in_place_interface.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_IN_PLACE_INTERFACE_HPP #define BOOST_INTERPROCESS_IN_PLACE_INTERFACE_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/detail/intermodule_singleton.hpp b/include/boost/interprocess/detail/intermodule_singleton.hpp index 46c78b1..9f41ba6 100644 --- a/include/boost/interprocess/detail/intermodule_singleton.hpp +++ b/include/boost/interprocess/detail/intermodule_singleton.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_INTERMODULE_SINGLETON_HPP #define BOOST_INTERPROCESS_INTERMODULE_SINGLETON_HPP -#if defined(_MSC_VER) +#if defined(_MSC_VER)&&(_MSC_VER>=1200) #pragma once #endif diff --git a/include/boost/interprocess/detail/intermodule_singleton_common.hpp b/include/boost/interprocess/detail/intermodule_singleton_common.hpp index cbe713b..60ec593 100644 --- a/include/boost/interprocess/detail/intermodule_singleton_common.hpp +++ b/include/boost/interprocess/detail/intermodule_singleton_common.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_INTERMODULE_SINGLETON_COMMON_HPP #define BOOST_INTERPROCESS_INTERMODULE_SINGLETON_COMMON_HPP -#if defined(_MSC_VER) +#if defined(_MSC_VER)&&(_MSC_VER>=1200) #pragma once #endif diff --git a/include/boost/interprocess/detail/intersegment_ptr.hpp b/include/boost/interprocess/detail/intersegment_ptr.hpp index fa1b277..ca2ff4a 100644 --- a/include/boost/interprocess/detail/intersegment_ptr.hpp +++ b/include/boost/interprocess/detail/intersegment_ptr.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_INTERSEGMENT_PTR_HPP #define BOOST_INTERPROCESS_INTERSEGMENT_PTR_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/detail/managed_global_memory.hpp b/include/boost/interprocess/detail/managed_global_memory.hpp index b1fcc0f..548e17d 100644 --- a/include/boost/interprocess/detail/managed_global_memory.hpp +++ b/include/boost/interprocess/detail/managed_global_memory.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_BASIC_GLOBAL_MEMORY_HPP #define BOOST_INTERPROCESS_BASIC_GLOBAL_MEMORY_HPP -#if defined(_MSC_VER) +#if defined(_MSC_VER)&&(_MSC_VER>=1200) #pragma once #endif diff --git a/include/boost/interprocess/detail/managed_memory_impl.hpp b/include/boost/interprocess/detail/managed_memory_impl.hpp index 106ab88..2f97935 100644 --- a/include/boost/interprocess/detail/managed_memory_impl.hpp +++ b/include/boost/interprocess/detail/managed_memory_impl.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_MANAGED_MEMORY_IMPL_HPP #define BOOST_INTERPROCESS_DETAIL_MANAGED_MEMORY_IMPL_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/detail/managed_multi_shared_memory.hpp b/include/boost/interprocess/detail/managed_multi_shared_memory.hpp index 4c2ef14..b1b2725 100644 --- a/include/boost/interprocess/detail/managed_multi_shared_memory.hpp +++ b/include/boost/interprocess/detail/managed_multi_shared_memory.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_MANAGED_MULTI_SHARED_MEMORY_HPP #define BOOST_INTERPROCESS_MANAGED_MULTI_SHARED_MEMORY_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/detail/min_max.hpp b/include/boost/interprocess/detail/min_max.hpp index a5d01f4..63ce7ef 100644 --- a/include/boost/interprocess/detail/min_max.hpp +++ b/include/boost/interprocess/detail/min_max.hpp @@ -13,7 +13,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_MIN_MAX_HPP #define BOOST_INTERPROCESS_DETAIL_MIN_MAX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/detail/mpl.hpp b/include/boost/interprocess/detail/mpl.hpp index 29f3893..4c5e1f1 100644 --- a/include/boost/interprocess/detail/mpl.hpp +++ b/include/boost/interprocess/detail/mpl.hpp @@ -13,7 +13,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_MPL_HPP #define BOOST_INTERPROCESS_DETAIL_MPL_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/detail/multi_segment_services.hpp b/include/boost/interprocess/detail/multi_segment_services.hpp index dd9d5f8..f625a9b 100644 --- a/include/boost/interprocess/detail/multi_segment_services.hpp +++ b/include/boost/interprocess/detail/multi_segment_services.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_MULTI_SEGMENT_SERVICES_HPP #define BOOST_INTERPROCESS_MULTI_SEGMENT_SERVICES_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/detail/named_proxy.hpp b/include/boost/interprocess/detail/named_proxy.hpp index 0c26188..14a9aa0 100644 --- a/include/boost/interprocess/detail/named_proxy.hpp +++ b/include/boost/interprocess/detail/named_proxy.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_NAMED_PROXY_HPP #define BOOST_INTERPROCESS_NAMED_PROXY_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/detail/pointer_type.hpp b/include/boost/interprocess/detail/pointer_type.hpp index 28b053c..aa8da55 100644 --- a/include/boost/interprocess/detail/pointer_type.hpp +++ b/include/boost/interprocess/detail/pointer_type.hpp @@ -14,7 +14,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_POINTER_TYPE_HPP #define BOOST_INTERPROCESS_DETAIL_POINTER_TYPE_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/detail/portable_intermodule_singleton.hpp b/include/boost/interprocess/detail/portable_intermodule_singleton.hpp index 15388bc..2d01906 100644 --- a/include/boost/interprocess/detail/portable_intermodule_singleton.hpp +++ b/include/boost/interprocess/detail/portable_intermodule_singleton.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_PORTABLE_INTERMODULE_SINGLETON_HPP #define BOOST_INTERPROCESS_PORTABLE_INTERMODULE_SINGLETON_HPP -#if defined(_MSC_VER) +#if defined(_MSC_VER)&&(_MSC_VER>=1200) #pragma once #endif diff --git a/include/boost/interprocess/detail/preprocessor.hpp b/include/boost/interprocess/detail/preprocessor.hpp index 06d1354..0eb419d 100644 --- a/include/boost/interprocess/detail/preprocessor.hpp +++ b/include/boost/interprocess/detail/preprocessor.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_PREPROCESSOR_HPP #define BOOST_INTERPROCESS_DETAIL_PREPROCESSOR_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/detail/robust_emulation.hpp b/include/boost/interprocess/detail/robust_emulation.hpp index 59bfc29..bf6f8eb 100644 --- a/include/boost/interprocess/detail/robust_emulation.hpp +++ b/include/boost/interprocess/detail/robust_emulation.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_ROBUST_EMULATION_HPP #define BOOST_INTERPROCESS_ROBUST_EMULATION_HPP -#if defined(_MSC_VER) +#if defined(_MSC_VER)&&(_MSC_VER>=1200) #pragma once #endif diff --git a/include/boost/interprocess/detail/segment_manager_helper.hpp b/include/boost/interprocess/detail/segment_manager_helper.hpp index 426c2d3..83e5a05 100644 --- a/include/boost/interprocess/detail/segment_manager_helper.hpp +++ b/include/boost/interprocess/detail/segment_manager_helper.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_SEGMENT_MANAGER_BASE_HPP #define BOOST_INTERPROCESS_SEGMENT_MANAGER_BASE_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/detail/transform_iterator.hpp b/include/boost/interprocess/detail/transform_iterator.hpp index 7db85e5..56bd0e5 100644 --- a/include/boost/interprocess/detail/transform_iterator.hpp +++ b/include/boost/interprocess/detail/transform_iterator.hpp @@ -14,7 +14,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_TRANSFORM_ITERATORS_HPP #define BOOST_INTERPROCESS_DETAIL_TRANSFORM_ITERATORS_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/detail/type_traits.hpp b/include/boost/interprocess/detail/type_traits.hpp index e56a495..ade623f 100644 --- a/include/boost/interprocess/detail/type_traits.hpp +++ b/include/boost/interprocess/detail/type_traits.hpp @@ -13,7 +13,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_TYPE_TRAITS_HPP #define BOOST_INTERPROCESS_DETAIL_TYPE_TRAITS_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/detail/utilities.hpp b/include/boost/interprocess/detail/utilities.hpp index 0b25cdc..3b486dd 100644 --- a/include/boost/interprocess/detail/utilities.hpp +++ b/include/boost/interprocess/detail/utilities.hpp @@ -14,7 +14,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_UTILITIES_HPP #define BOOST_INTERPROCESS_DETAIL_UTILITIES_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/detail/variadic_templates_tools.hpp b/include/boost/interprocess/detail/variadic_templates_tools.hpp index 80154e0..5f2a94a 100644 --- a/include/boost/interprocess/detail/variadic_templates_tools.hpp +++ b/include/boost/interprocess/detail/variadic_templates_tools.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_VARIADIC_TEMPLATES_TOOLS_HPP #define BOOST_INTERPROCESS_DETAIL_VARIADIC_TEMPLATES_TOOLS_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/detail/win32_api.hpp b/include/boost/interprocess/detail/win32_api.hpp index ae977df..e64aa90 100644 --- a/include/boost/interprocess/detail/win32_api.hpp +++ b/include/boost/interprocess/detail/win32_api.hpp @@ -25,7 +25,7 @@ #include -#if defined(_MSC_VER) +#if defined (_MSC_VER) && (_MSC_VER >= 1200) # pragma once # pragma comment( lib, "Advapi32.lib" ) # pragma comment( lib, "oleaut32.lib" ) diff --git a/include/boost/interprocess/detail/windows_intermodule_singleton.hpp b/include/boost/interprocess/detail/windows_intermodule_singleton.hpp index b05ee62..946f6a7 100644 --- a/include/boost/interprocess/detail/windows_intermodule_singleton.hpp +++ b/include/boost/interprocess/detail/windows_intermodule_singleton.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_WINDOWS_INTERMODULE_SINGLETON_HPP #define BOOST_INTERPROCESS_WINDOWS_INTERMODULE_SINGLETON_HPP -#if defined(_MSC_VER) +#if defined(_MSC_VER)&&(_MSC_VER>=1200) #pragma once #endif diff --git a/include/boost/interprocess/errors.hpp b/include/boost/interprocess/errors.hpp index 21f5f38..8d97d0b 100644 --- a/include/boost/interprocess/errors.hpp +++ b/include/boost/interprocess/errors.hpp @@ -24,7 +24,7 @@ #ifndef BOOST_INTERPROCESS_ERRORS_HPP #define BOOST_INTERPROCESS_ERRORS_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/exceptions.hpp b/include/boost/interprocess/exceptions.hpp index cf9d5b4..b9ab45b 100644 --- a/include/boost/interprocess/exceptions.hpp +++ b/include/boost/interprocess/exceptions.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_EXCEPTIONS_HPP #define BOOST_INTERPROCESS_EXCEPTIONS_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/interprocess_fwd.hpp b/include/boost/interprocess/interprocess_fwd.hpp index b5865d6..42f170a 100644 --- a/include/boost/interprocess/interprocess_fwd.hpp +++ b/include/boost/interprocess/interprocess_fwd.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_FWD_HPP #define BOOST_INTERPROCESS_FWD_HPP -#if defined(_MSC_VER) +#if defined (_MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/managed_external_buffer.hpp b/include/boost/interprocess/managed_external_buffer.hpp index e21a804..1f4a199 100644 --- a/include/boost/interprocess/managed_external_buffer.hpp +++ b/include/boost/interprocess/managed_external_buffer.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_MANAGED_EXTERNAL_BUFFER_HPP #define BOOST_INTERPROCESS_MANAGED_EXTERNAL_BUFFER_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/managed_heap_memory.hpp b/include/boost/interprocess/managed_heap_memory.hpp index c073d0e..868fdc5 100644 --- a/include/boost/interprocess/managed_heap_memory.hpp +++ b/include/boost/interprocess/managed_heap_memory.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_MANAGED_HEAP_MEMORY_HPP #define BOOST_INTERPROCESS_MANAGED_HEAP_MEMORY_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/managed_mapped_file.hpp b/include/boost/interprocess/managed_mapped_file.hpp index fd325c3..a802119 100644 --- a/include/boost/interprocess/managed_mapped_file.hpp +++ b/include/boost/interprocess/managed_mapped_file.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_MANAGED_MAPPED_FILE_HPP #define BOOST_INTERPROCESS_MANAGED_MAPPED_FILE_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/managed_shared_memory.hpp b/include/boost/interprocess/managed_shared_memory.hpp index 348fe91..c20f39c 100644 --- a/include/boost/interprocess/managed_shared_memory.hpp +++ b/include/boost/interprocess/managed_shared_memory.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_MANAGED_SHARED_MEMORY_HPP #define BOOST_INTERPROCESS_MANAGED_SHARED_MEMORY_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/managed_windows_shared_memory.hpp b/include/boost/interprocess/managed_windows_shared_memory.hpp index 76c332f..e553a70 100644 --- a/include/boost/interprocess/managed_windows_shared_memory.hpp +++ b/include/boost/interprocess/managed_windows_shared_memory.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_MANAGED_WINDOWS_SHARED_MEMORY_HPP #define BOOST_INTERPROCESS_MANAGED_WINDOWS_SHARED_MEMORY_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/managed_xsi_shared_memory.hpp b/include/boost/interprocess/managed_xsi_shared_memory.hpp index b9dc619..4ec7eba 100644 --- a/include/boost/interprocess/managed_xsi_shared_memory.hpp +++ b/include/boost/interprocess/managed_xsi_shared_memory.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_MANAGED_XSI_SHARED_MEMORY_HPP #define BOOST_INTERPROCESS_MANAGED_XSI_SHARED_MEMORY_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/mem_algo/detail/mem_algo_common.hpp b/include/boost/interprocess/mem_algo/detail/mem_algo_common.hpp index 6200b37..a6936ec 100644 --- a/include/boost/interprocess/mem_algo/detail/mem_algo_common.hpp +++ b/include/boost/interprocess/mem_algo/detail/mem_algo_common.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_MEM_ALGO_COMMON_HPP #define BOOST_INTERPROCESS_DETAIL_MEM_ALGO_COMMON_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/mem_algo/detail/multi_simple_seq_fit.hpp b/include/boost/interprocess/mem_algo/detail/multi_simple_seq_fit.hpp index 4644929..e8b678d 100644 --- a/include/boost/interprocess/mem_algo/detail/multi_simple_seq_fit.hpp +++ b/include/boost/interprocess/mem_algo/detail/multi_simple_seq_fit.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_MULTI_SIMPLE_SEQ_FIT_HPP #define BOOST_INTERPROCESS_MULTI_SIMPLE_SEQ_FIT_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/mem_algo/detail/multi_simple_seq_fit_impl.hpp b/include/boost/interprocess/mem_algo/detail/multi_simple_seq_fit_impl.hpp index 4713cfe..7a2c7a8 100644 --- a/include/boost/interprocess/mem_algo/detail/multi_simple_seq_fit_impl.hpp +++ b/include/boost/interprocess/mem_algo/detail/multi_simple_seq_fit_impl.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_MEM_ALGO_DETAIL_SIMPLE_SEQ_FIT_IMPL_HPP #define BOOST_INTERPROCESS_MEM_ALGO_DETAIL_SIMPLE_SEQ_FIT_IMPL_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/mem_algo/detail/simple_seq_fit_impl.hpp b/include/boost/interprocess/mem_algo/detail/simple_seq_fit_impl.hpp index 0a91bd6..1fb95a5 100644 --- a/include/boost/interprocess/mem_algo/detail/simple_seq_fit_impl.hpp +++ b/include/boost/interprocess/mem_algo/detail/simple_seq_fit_impl.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_MEM_ALGO_DETAIL_SIMPLE_SEQ_FIT_IMPL_HPP #define BOOST_INTERPROCESS_MEM_ALGO_DETAIL_SIMPLE_SEQ_FIT_IMPL_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/mem_algo/rbtree_best_fit.hpp b/include/boost/interprocess/mem_algo/rbtree_best_fit.hpp index 6ed18ab..0f42f7e 100644 --- a/include/boost/interprocess/mem_algo/rbtree_best_fit.hpp +++ b/include/boost/interprocess/mem_algo/rbtree_best_fit.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_MEM_ALGO_RBTREE_BEST_FIT_HPP #define BOOST_INTERPROCESS_MEM_ALGO_RBTREE_BEST_FIT_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif @@ -31,12 +31,11 @@ #include #include #include -#include #include -#include #include #include #include +#include #include #include #include diff --git a/include/boost/interprocess/mem_algo/simple_seq_fit.hpp b/include/boost/interprocess/mem_algo/simple_seq_fit.hpp index a8ca25c..ba50c16 100644 --- a/include/boost/interprocess/mem_algo/simple_seq_fit.hpp +++ b/include/boost/interprocess/mem_algo/simple_seq_fit.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_SIMPLE_SEQ_FIT_HPP #define BOOST_INTERPROCESS_SIMPLE_SEQ_FIT_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/offset_ptr.hpp b/include/boost/interprocess/offset_ptr.hpp index defb5d2..508946f 100644 --- a/include/boost/interprocess/offset_ptr.hpp +++ b/include/boost/interprocess/offset_ptr.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_OFFSET_PTR_HPP #define BOOST_INTERPROCESS_OFFSET_PTR_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/permissions.hpp b/include/boost/interprocess/permissions.hpp index 7403f3b..4266b24 100644 --- a/include/boost/interprocess/permissions.hpp +++ b/include/boost/interprocess/permissions.hpp @@ -13,7 +13,7 @@ /// @cond -#if defined(_MSC_VER) +#if defined (_MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/segment_manager.hpp b/include/boost/interprocess/segment_manager.hpp index 9878811..9113acb 100644 --- a/include/boost/interprocess/segment_manager.hpp +++ b/include/boost/interprocess/segment_manager.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_SEGMENT_MANAGER_HPP #define BOOST_INTERPROCESS_SEGMENT_MANAGER_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/smart_ptr/deleter.hpp b/include/boost/interprocess/smart_ptr/deleter.hpp index 1a9e390..8447bf1 100644 --- a/include/boost/interprocess/smart_ptr/deleter.hpp +++ b/include/boost/interprocess/smart_ptr/deleter.hpp @@ -13,7 +13,7 @@ #ifndef BOOST_INTERPROCESS_DELETER_HPP #define BOOST_INTERPROCESS_DELETER_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/smart_ptr/detail/bad_weak_ptr.hpp b/include/boost/interprocess/smart_ptr/detail/bad_weak_ptr.hpp index db3bcb1..9429613 100644 --- a/include/boost/interprocess/smart_ptr/detail/bad_weak_ptr.hpp +++ b/include/boost/interprocess/smart_ptr/detail/bad_weak_ptr.hpp @@ -13,7 +13,7 @@ #ifndef BOOST_INTERPROCESS_BAD_WEAK_PTR_HPP_INCLUDED #define BOOST_INTERPROCESS_BAD_WEAK_PTR_HPP_INCLUDED -#if defined(_MSC_VER) +#if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif diff --git a/include/boost/interprocess/smart_ptr/detail/shared_count.hpp b/include/boost/interprocess/smart_ptr/detail/shared_count.hpp index aed83eb..2a86a35 100644 --- a/include/boost/interprocess/smart_ptr/detail/shared_count.hpp +++ b/include/boost/interprocess/smart_ptr/detail/shared_count.hpp @@ -16,7 +16,7 @@ // MS compatible compilers support #pragma once -#if defined(_MSC_VER) +#if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif diff --git a/include/boost/interprocess/smart_ptr/detail/sp_counted_base_atomic.hpp b/include/boost/interprocess/smart_ptr/detail/sp_counted_base_atomic.hpp index 6ec1d56..74f65f1 100644 --- a/include/boost/interprocess/smart_ptr/detail/sp_counted_base_atomic.hpp +++ b/include/boost/interprocess/smart_ptr/detail/sp_counted_base_atomic.hpp @@ -3,7 +3,7 @@ // MS compatible compilers support #pragma once -#if defined(_MSC_VER) +#if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif diff --git a/include/boost/interprocess/smart_ptr/detail/sp_counted_impl.hpp b/include/boost/interprocess/smart_ptr/detail/sp_counted_impl.hpp index 3e01be5..d5142fa 100644 --- a/include/boost/interprocess/smart_ptr/detail/sp_counted_impl.hpp +++ b/include/boost/interprocess/smart_ptr/detail/sp_counted_impl.hpp @@ -3,7 +3,7 @@ // MS compatible compilers support #pragma once -#if defined(_MSC_VER) +#if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif diff --git a/include/boost/interprocess/sync/detail/condition_algorithm_8a.hpp b/include/boost/interprocess/sync/detail/condition_algorithm_8a.hpp index 5d7e7fd..5422b9e 100644 --- a/include/boost/interprocess/sync/detail/condition_algorithm_8a.hpp +++ b/include/boost/interprocess/sync/detail/condition_algorithm_8a.hpp @@ -324,8 +324,7 @@ class condition_8a_wrapper condition_8a_wrapper(){} - //Compiler-generated destructor is OK - //~condition_8a_wrapper(){} + ~condition_8a_wrapper(){} ConditionMembers & get_members() { return m_data; } diff --git a/include/boost/interprocess/sync/file_lock.hpp b/include/boost/interprocess/sync/file_lock.hpp index d551573..26ef9cc 100644 --- a/include/boost/interprocess/sync/file_lock.hpp +++ b/include/boost/interprocess/sync/file_lock.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_FILE_LOCK_HPP #define BOOST_INTERPROCESS_FILE_LOCK_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/interprocess_condition.hpp b/include/boost/interprocess/sync/interprocess_condition.hpp index 1581b0f..c30e870 100644 --- a/include/boost/interprocess/sync/interprocess_condition.hpp +++ b/include/boost/interprocess/sync/interprocess_condition.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_CONDITION_HPP #define BOOST_INTERPROCESS_CONDITION_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/interprocess_condition_any.hpp b/include/boost/interprocess/sync/interprocess_condition_any.hpp index 3ca3320..dd20794 100644 --- a/include/boost/interprocess/sync/interprocess_condition_any.hpp +++ b/include/boost/interprocess/sync/interprocess_condition_any.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_CONDITION_ANY_HPP #define BOOST_INTERPROCESS_CONDITION_ANY_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/interprocess_mutex.hpp b/include/boost/interprocess/sync/interprocess_mutex.hpp index 6dbcedf..5615e8b 100644 --- a/include/boost/interprocess/sync/interprocess_mutex.hpp +++ b/include/boost/interprocess/sync/interprocess_mutex.hpp @@ -17,7 +17,7 @@ /// @cond -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/interprocess_recursive_mutex.hpp b/include/boost/interprocess/sync/interprocess_recursive_mutex.hpp index 43d4125..1c5dad3 100644 --- a/include/boost/interprocess/sync/interprocess_recursive_mutex.hpp +++ b/include/boost/interprocess/sync/interprocess_recursive_mutex.hpp @@ -29,7 +29,7 @@ /// @cond -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/interprocess_semaphore.hpp b/include/boost/interprocess/sync/interprocess_semaphore.hpp index c7a19d6..2fe0581 100644 --- a/include/boost/interprocess/sync/interprocess_semaphore.hpp +++ b/include/boost/interprocess/sync/interprocess_semaphore.hpp @@ -13,7 +13,7 @@ /// @cond -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/interprocess_sharable_mutex.hpp b/include/boost/interprocess/sync/interprocess_sharable_mutex.hpp index 00816ad..2ca1238 100644 --- a/include/boost/interprocess/sync/interprocess_sharable_mutex.hpp +++ b/include/boost/interprocess/sync/interprocess_sharable_mutex.hpp @@ -15,7 +15,7 @@ #ifndef BOOST_INTERPROCESS_SHARABLE_MUTEX_HPP #define BOOST_INTERPROCESS_SHARABLE_MUTEX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/interprocess_upgradable_mutex.hpp b/include/boost/interprocess/sync/interprocess_upgradable_mutex.hpp index 2719212..44c4eb4 100644 --- a/include/boost/interprocess/sync/interprocess_upgradable_mutex.hpp +++ b/include/boost/interprocess/sync/interprocess_upgradable_mutex.hpp @@ -13,7 +13,7 @@ #ifndef BOOST_INTERPROCESS_UPGRADABLE_MUTEX_HPP #define BOOST_INTERPROCESS_UPGRADABLE_MUTEX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/lock_options.hpp b/include/boost/interprocess/sync/lock_options.hpp index 49589e2..1139d83 100644 --- a/include/boost/interprocess/sync/lock_options.hpp +++ b/include/boost/interprocess/sync/lock_options.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_LOCK_OPTIONS_HPP #define BOOST_INTERPROCESS_LOCK_OPTIONS_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/mutex_family.hpp b/include/boost/interprocess/sync/mutex_family.hpp index f19805f..0636de0 100644 --- a/include/boost/interprocess/sync/mutex_family.hpp +++ b/include/boost/interprocess/sync/mutex_family.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_MUTEX_FAMILY_HPP #define BOOST_INTERPROCESS_MUTEX_FAMILY_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/named_condition.hpp b/include/boost/interprocess/sync/named_condition.hpp index 0bf009a..7c570f4 100644 --- a/include/boost/interprocess/sync/named_condition.hpp +++ b/include/boost/interprocess/sync/named_condition.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_NAMED_CONDITION_HPP #define BOOST_INTERPROCESS_NAMED_CONDITION_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/named_condition_any.hpp b/include/boost/interprocess/sync/named_condition_any.hpp index 59426c9..f8f204b 100644 --- a/include/boost/interprocess/sync/named_condition_any.hpp +++ b/include/boost/interprocess/sync/named_condition_any.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_NAMED_CONDITION_ANY_HPP #define BOOST_INTERPROCESS_NAMED_CONDITION_ANY_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/named_mutex.hpp b/include/boost/interprocess/sync/named_mutex.hpp index 96bccf0..eb11245 100644 --- a/include/boost/interprocess/sync/named_mutex.hpp +++ b/include/boost/interprocess/sync/named_mutex.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_NAMED_MUTEX_HPP #define BOOST_INTERPROCESS_NAMED_MUTEX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/named_recursive_mutex.hpp b/include/boost/interprocess/sync/named_recursive_mutex.hpp index 1e0d0d4..0938562 100644 --- a/include/boost/interprocess/sync/named_recursive_mutex.hpp +++ b/include/boost/interprocess/sync/named_recursive_mutex.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_NAMED_RECURSIVE_MUTEX_HPP #define BOOST_INTERPROCESS_NAMED_RECURSIVE_MUTEX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/named_semaphore.hpp b/include/boost/interprocess/sync/named_semaphore.hpp index 05469a0..438e3c0 100644 --- a/include/boost/interprocess/sync/named_semaphore.hpp +++ b/include/boost/interprocess/sync/named_semaphore.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_NAMED_SEMAPHORE_HPP #define BOOST_INTERPROCESS_NAMED_SEMAPHORE_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/named_sharable_mutex.hpp b/include/boost/interprocess/sync/named_sharable_mutex.hpp index 9813861..6ebcebf 100644 --- a/include/boost/interprocess/sync/named_sharable_mutex.hpp +++ b/include/boost/interprocess/sync/named_sharable_mutex.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_NAMED_SHARABLE_MUTEX_HPP #define BOOST_INTERPROCESS_NAMED_SHARABLE_MUTEX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/named_upgradable_mutex.hpp b/include/boost/interprocess/sync/named_upgradable_mutex.hpp index 1751026..95e0ed5 100644 --- a/include/boost/interprocess/sync/named_upgradable_mutex.hpp +++ b/include/boost/interprocess/sync/named_upgradable_mutex.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_named_upgradable_mutex_HPP #define BOOST_INTERPROCESS_named_upgradable_mutex_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/null_mutex.hpp b/include/boost/interprocess/sync/null_mutex.hpp index 66cb3ca..d9f69a6 100644 --- a/include/boost/interprocess/sync/null_mutex.hpp +++ b/include/boost/interprocess/sync/null_mutex.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_NULL_MUTEX_HPP #define BOOST_INTERPROCESS_NULL_MUTEX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/posix/condition.hpp b/include/boost/interprocess/sync/posix/condition.hpp index e09fe4a..301b172 100644 --- a/include/boost/interprocess/sync/posix/condition.hpp +++ b/include/boost/interprocess/sync/posix/condition.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_POSIX_CONDITION_HPP #define BOOST_INTERPROCESS_POSIX_CONDITION_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/posix/mutex.hpp b/include/boost/interprocess/sync/posix/mutex.hpp index 4cd4207..34e3099 100644 --- a/include/boost/interprocess/sync/posix/mutex.hpp +++ b/include/boost/interprocess/sync/posix/mutex.hpp @@ -27,7 +27,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_POSIX_MUTEX_HPP #define BOOST_INTERPROCESS_DETAIL_POSIX_MUTEX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/posix/named_mutex.hpp b/include/boost/interprocess/sync/posix/named_mutex.hpp index b2880b9..248af01 100644 --- a/include/boost/interprocess/sync/posix/named_mutex.hpp +++ b/include/boost/interprocess/sync/posix/named_mutex.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_POSIX_NAMED_MUTEX_HPP #define BOOST_INTERPROCESS_POSIX_NAMED_MUTEX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/posix/named_semaphore.hpp b/include/boost/interprocess/sync/posix/named_semaphore.hpp index 113f5f1..0b7ca8b 100644 --- a/include/boost/interprocess/sync/posix/named_semaphore.hpp +++ b/include/boost/interprocess/sync/posix/named_semaphore.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_POSIX_NAMED_CONDITION_HPP #define BOOST_INTERPROCESS_POSIX_NAMED_CONDITION_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/posix/pthread_helpers.hpp b/include/boost/interprocess/sync/posix/pthread_helpers.hpp index ce859d7..9e989d5 100644 --- a/include/boost/interprocess/sync/posix/pthread_helpers.hpp +++ b/include/boost/interprocess/sync/posix/pthread_helpers.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_PTHREAD_HELPERS_HPP #define BOOST_INTERPROCESS_PTHREAD_HELPERS_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/posix/semaphore.hpp b/include/boost/interprocess/sync/posix/semaphore.hpp index ba6a6f0..5d7dfa8 100644 --- a/include/boost/interprocess/sync/posix/semaphore.hpp +++ b/include/boost/interprocess/sync/posix/semaphore.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_POSIX_SEMAPHORE_HPP #define BOOST_INTERPROCESS_POSIX_SEMAPHORE_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/scoped_lock.hpp b/include/boost/interprocess/sync/scoped_lock.hpp index 8724857..5709f6f 100644 --- a/include/boost/interprocess/sync/scoped_lock.hpp +++ b/include/boost/interprocess/sync/scoped_lock.hpp @@ -16,7 +16,7 @@ #ifndef BOOST_INTERPROCESS_SCOPED_LOCK_HPP #define BOOST_INTERPROCESS_SCOPED_LOCK_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/sharable_lock.hpp b/include/boost/interprocess/sync/sharable_lock.hpp index 6164432..1130195 100644 --- a/include/boost/interprocess/sync/sharable_lock.hpp +++ b/include/boost/interprocess/sync/sharable_lock.hpp @@ -16,7 +16,7 @@ #ifndef BOOST_INTERPROCESS_SHARABLE_LOCK_HPP #define BOOST_INTERPROCESS_SHARABLE_LOCK_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/shm/named_condition.hpp b/include/boost/interprocess/sync/shm/named_condition.hpp index 1184173..be7a69f 100644 --- a/include/boost/interprocess/sync/shm/named_condition.hpp +++ b/include/boost/interprocess/sync/shm/named_condition.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_SHM_NAMED_CONDITION_HPP #define BOOST_INTERPROCESS_SHM_NAMED_CONDITION_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/shm/named_condition_any.hpp b/include/boost/interprocess/sync/shm/named_condition_any.hpp index cf92823..7bac854 100644 --- a/include/boost/interprocess/sync/shm/named_condition_any.hpp +++ b/include/boost/interprocess/sync/shm/named_condition_any.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_SHM_NAMED_CONDITION_ANY_HPP #define BOOST_INTERPROCESS_SHM_NAMED_CONDITION_ANY_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/shm/named_mutex.hpp b/include/boost/interprocess/sync/shm/named_mutex.hpp index 11becee..4b9252f 100644 --- a/include/boost/interprocess/sync/shm/named_mutex.hpp +++ b/include/boost/interprocess/sync/shm/named_mutex.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_SHM_NAMED_MUTEX_HPP #define BOOST_INTERPROCESS_SHM_NAMED_MUTEX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/shm/named_recursive_mutex.hpp b/include/boost/interprocess/sync/shm/named_recursive_mutex.hpp index 9e10195..7ff2f91 100644 --- a/include/boost/interprocess/sync/shm/named_recursive_mutex.hpp +++ b/include/boost/interprocess/sync/shm/named_recursive_mutex.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_SHM_NAMED_RECURSIVE_MUTEX_HPP #define BOOST_INTERPROCESS_SHM_NAMED_RECURSIVE_MUTEX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/shm/named_semaphore.hpp b/include/boost/interprocess/sync/shm/named_semaphore.hpp index 95e7a7f..1f3bb77 100644 --- a/include/boost/interprocess/sync/shm/named_semaphore.hpp +++ b/include/boost/interprocess/sync/shm/named_semaphore.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_SHM_NAMED_SEMAPHORE_HPP #define BOOST_INTERPROCESS_SHM_NAMED_SEMAPHORE_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/shm/named_upgradable_mutex.hpp b/include/boost/interprocess/sync/shm/named_upgradable_mutex.hpp index 74a358e..3337cf0 100644 --- a/include/boost/interprocess/sync/shm/named_upgradable_mutex.hpp +++ b/include/boost/interprocess/sync/shm/named_upgradable_mutex.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_NAMED_UPGRADABLE_MUTEX_HPP #define BOOST_INTERPROCESS_NAMED_UPGRADABLE_MUTEX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/spin/condition.hpp b/include/boost/interprocess/sync/spin/condition.hpp index 0d75a94..3723a33 100644 --- a/include/boost/interprocess/sync/spin/condition.hpp +++ b/include/boost/interprocess/sync/spin/condition.hpp @@ -114,9 +114,7 @@ inline spin_condition::spin_condition() inline spin_condition::~spin_condition() { - //Notify all waiting threads - //to allow POSIX semantics on condition destruction - this->notify_all(); + //Trivial destructor } inline void spin_condition::notify_one() diff --git a/include/boost/interprocess/sync/spin/mutex.hpp b/include/boost/interprocess/sync/spin/mutex.hpp index 154dc6d..ab278de 100644 --- a/include/boost/interprocess/sync/spin/mutex.hpp +++ b/include/boost/interprocess/sync/spin/mutex.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_SPIN_MUTEX_HPP #define BOOST_INTERPROCESS_DETAIL_SPIN_MUTEX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/spin/recursive_mutex.hpp b/include/boost/interprocess/sync/spin/recursive_mutex.hpp index ce6b0d1..eb823cf 100644 --- a/include/boost/interprocess/sync/spin/recursive_mutex.hpp +++ b/include/boost/interprocess/sync/spin/recursive_mutex.hpp @@ -27,7 +27,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_SPIN_RECURSIVE_MUTEX_HPP #define BOOST_INTERPROCESS_DETAIL_SPIN_RECURSIVE_MUTEX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/spin/semaphore.hpp b/include/boost/interprocess/sync/spin/semaphore.hpp index 94922af..41d3229 100644 --- a/include/boost/interprocess/sync/spin/semaphore.hpp +++ b/include/boost/interprocess/sync/spin/semaphore.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_SPIN_SEMAPHORE_HPP #define BOOST_INTERPROCESS_DETAIL_SPIN_SEMAPHORE_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/spin/wait.hpp b/include/boost/interprocess/sync/spin/wait.hpp index 6395eed..0707bd8 100644 --- a/include/boost/interprocess/sync/spin/wait.hpp +++ b/include/boost/interprocess/sync/spin/wait.hpp @@ -15,7 +15,7 @@ #ifndef BOOST_INTERPROCESS_SYNC_WAIT_HPP_INCLUDED #define BOOST_INTERPROCESS_SYNC_WAIT_HPP_INCLUDED -#if defined(_MSC_VER) +#if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif @@ -30,7 +30,7 @@ // BOOST_INTERPROCESS_SMT_PAUSE -#if defined(_MSC_VER) && ( defined(_M_IX86) || defined(_M_X64) ) +#if defined(_MSC_VER) && _MSC_VER >= 1310 && ( defined(_M_IX86) || defined(_M_X64) ) extern "C" void _mm_pause(); #pragma intrinsic( _mm_pause ) diff --git a/include/boost/interprocess/sync/upgradable_lock.hpp b/include/boost/interprocess/sync/upgradable_lock.hpp index d86a6ce..6b766fd 100644 --- a/include/boost/interprocess/sync/upgradable_lock.hpp +++ b/include/boost/interprocess/sync/upgradable_lock.hpp @@ -16,7 +16,7 @@ #ifndef BOOST_INTERPROCESS_UPGRADABLE_LOCK_HPP #define BOOST_INTERPROCESS_UPGRADABLE_LOCK_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/windows/condition.hpp b/include/boost/interprocess/sync/windows/condition.hpp index f880e4f..6277951 100644 --- a/include/boost/interprocess/sync/windows/condition.hpp +++ b/include/boost/interprocess/sync/windows/condition.hpp @@ -38,11 +38,7 @@ class windows_condition {} ~windows_condition() - { - //Notify all waiting threads - //to allow POSIX semantics on condition destruction - this->notify_all(); - } + {} void notify_one() { m_condition_data.notify_one(); } diff --git a/include/boost/interprocess/sync/windows/mutex.hpp b/include/boost/interprocess/sync/windows/mutex.hpp index 0b1958c..c8a64b3 100644 --- a/include/boost/interprocess/sync/windows/mutex.hpp +++ b/include/boost/interprocess/sync/windows/mutex.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_WINDOWS_MUTEX_HPP #define BOOST_INTERPROCESS_DETAIL_WINDOWS_MUTEX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/windows/named_condition.hpp b/include/boost/interprocess/sync/windows/named_condition.hpp index ba220fd..4724482 100644 --- a/include/boost/interprocess/sync/windows/named_condition.hpp +++ b/include/boost/interprocess/sync/windows/named_condition.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_WINDOWS_NAMED_CONDITION_HPP #define BOOST_INTERPROCESS_WINDOWS_NAMED_CONDITION_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/windows/named_condition_any.hpp b/include/boost/interprocess/sync/windows/named_condition_any.hpp index e5481d1..f649571 100644 --- a/include/boost/interprocess/sync/windows/named_condition_any.hpp +++ b/include/boost/interprocess/sync/windows/named_condition_any.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_WINDOWS_NAMED_CONDITION_ANY_HPP #define BOOST_INTERPROCESS_WINDOWS_NAMED_CONDITION_ANY_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif @@ -134,6 +134,8 @@ class windows_named_condition_any winapi_mutex_wrapper m_mtx_unblock_lock; }; + ipcdetail::condition_8a_wrapper m_condition_data; + class named_cond_callbacks : public windows_named_sync_interface { typedef __int64 sem_count_t; @@ -227,7 +229,6 @@ class windows_named_condition_any }; windows_named_sync m_named_sync; - ipcdetail::condition_8a_wrapper m_condition_data; /// @endcond }; diff --git a/include/boost/interprocess/sync/windows/named_mutex.hpp b/include/boost/interprocess/sync/windows/named_mutex.hpp index 9329935..8ea6b3e 100644 --- a/include/boost/interprocess/sync/windows/named_mutex.hpp +++ b/include/boost/interprocess/sync/windows/named_mutex.hpp @@ -10,7 +10,7 @@ #ifndef BOOST_INTERPROCESS_WINDOWS_NAMED_MUTEX_HPP #define BOOST_INTERPROCESS_WINDOWS_NAMED_MUTEX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/windows/named_recursive_mutex.hpp b/include/boost/interprocess/sync/windows/named_recursive_mutex.hpp index 547926a..cb2ef79 100644 --- a/include/boost/interprocess/sync/windows/named_recursive_mutex.hpp +++ b/include/boost/interprocess/sync/windows/named_recursive_mutex.hpp @@ -10,7 +10,7 @@ #ifndef BOOST_INTERPROCESS_WINDOWS_RECURSIVE_NAMED_MUTEX_HPP #define BOOST_INTERPROCESS_WINDOWS_RECURSIVE_NAMED_MUTEX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/windows/named_semaphore.hpp b/include/boost/interprocess/sync/windows/named_semaphore.hpp index f868f3d..8f48d4d 100644 --- a/include/boost/interprocess/sync/windows/named_semaphore.hpp +++ b/include/boost/interprocess/sync/windows/named_semaphore.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_WINDOWS_NAMED_SEMAPHORE_HPP #define BOOST_INTERPROCESS_WINDOWS_NAMED_SEMAPHORE_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/windows/named_sync.hpp b/include/boost/interprocess/sync/windows/named_sync.hpp index a15a0be..298c2e2 100644 --- a/include/boost/interprocess/sync/windows/named_sync.hpp +++ b/include/boost/interprocess/sync/windows/named_sync.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_WINDOWS_NAMED_SYNC_HPP #define BOOST_INTERPROCESS_WINDOWS_NAMED_SYNC_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/windows/recursive_mutex.hpp b/include/boost/interprocess/sync/windows/recursive_mutex.hpp index 55a8385..2b4797e 100644 --- a/include/boost/interprocess/sync/windows/recursive_mutex.hpp +++ b/include/boost/interprocess/sync/windows/recursive_mutex.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_WINDOWS_RECURSIVE_MUTEX_HPP #define BOOST_INTERPROCESS_DETAIL_WINDOWS_RECURSIVE_MUTEX_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/windows/semaphore.hpp b/include/boost/interprocess/sync/windows/semaphore.hpp index 7fdbc41..a8166ce 100644 --- a/include/boost/interprocess/sync/windows/semaphore.hpp +++ b/include/boost/interprocess/sync/windows/semaphore.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_WINDOWS_SEMAPHORE_HPP #define BOOST_INTERPROCESS_DETAIL_WINDOWS_SEMAPHORE_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/windows/sync_utils.hpp b/include/boost/interprocess/sync/windows/sync_utils.hpp index 7e54cc3..92d8e55 100644 --- a/include/boost/interprocess/sync/windows/sync_utils.hpp +++ b/include/boost/interprocess/sync/windows/sync_utils.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_SYNC_UTILS_HPP #define BOOST_INTERPROCESS_DETAIL_SYNC_UTILS_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/windows/winapi_mutex_wrapper.hpp b/include/boost/interprocess/sync/windows/winapi_mutex_wrapper.hpp index 1b41f1b..e53f758 100644 --- a/include/boost/interprocess/sync/windows/winapi_mutex_wrapper.hpp +++ b/include/boost/interprocess/sync/windows/winapi_mutex_wrapper.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_WINAPI_MUTEX_WRAPPER_HPP #define BOOST_INTERPROCESS_DETAIL_WINAPI_MUTEX_WRAPPER_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/include/boost/interprocess/sync/windows/winapi_semaphore_wrapper.hpp b/include/boost/interprocess/sync/windows/winapi_semaphore_wrapper.hpp index 721acf9..66cdf95 100644 --- a/include/boost/interprocess/sync/windows/winapi_semaphore_wrapper.hpp +++ b/include/boost/interprocess/sync/windows/winapi_semaphore_wrapper.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_WINAPI_SEMAPHORE_WRAPPER_HPP #define BOOST_INTERPROCESS_DETAIL_WINAPI_SEMAPHORE_WRAPPER_HPP -#if defined(_MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/test/allocator_v1.hpp b/test/allocator_v1.hpp index 5c1e648..6fb7dc2 100644 --- a/test/allocator_v1.hpp +++ b/test/allocator_v1.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_ALLOCATOR_V1_HPP #define BOOST_INTERPROCESS_ALLOCATOR_V1_HPP -#if (defined _MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/test/dummy_test_allocator.hpp b/test/dummy_test_allocator.hpp index 284d261..5672ff2 100644 --- a/test/dummy_test_allocator.hpp +++ b/test/dummy_test_allocator.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_DUMMY_TEST_ALLOCATOR_HPP #define BOOST_INTERPROCESS_DUMMY_TEST_ALLOCATOR_HPP -#if (defined _MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/test/expand_bwd_test_allocator.hpp b/test/expand_bwd_test_allocator.hpp index 7cf7a89..6a801a3 100644 --- a/test/expand_bwd_test_allocator.hpp +++ b/test/expand_bwd_test_allocator.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_EXPAND_BWD_TEST_ALLOCATOR_HPP #define BOOST_INTERPROCESS_EXPAND_BWD_TEST_ALLOCATOR_HPP -#if (defined _MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif diff --git a/test/heap_allocator_v1.hpp b/test/heap_allocator_v1.hpp index c8b53d6..9ec82bb 100644 --- a/test/heap_allocator_v1.hpp +++ b/test/heap_allocator_v1.hpp @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_HEAP_ALLOCATOR_V1_HPP #define BOOST_INTERPROCESS_HEAP_ALLOCATOR_V1_HPP -#if (defined _MSC_VER) +#if (defined _MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif