diff -urN boost_1_55_0.orig/boost/asio/detail/call_stack.hpp boost_1_55_0/boost/asio/detail/call_stack.hpp
old
|
new
|
|
19 | 19 | #include <boost/asio/detail/noncopyable.hpp> |
20 | 20 | #include <boost/asio/detail/tss_ptr.hpp> |
21 | 21 | |
| 22 | // HACK to only export symbol on windows since gcc doesn't like this for inlines |
| 23 | #if defined(BOOST_ASIO_WINDOWS) |
| 24 | #define BOOST_ASIO_DECL_WINDOWS BOOST_ASIO_DECL |
| 25 | #else |
| 26 | #define BOOST_ASIO_DECL_WINDOWS |
| 27 | #endif |
| 28 | |
22 | 29 | #include <boost/asio/detail/push_options.hpp> |
23 | 30 | |
24 | 31 | namespace boost { |
… |
… |
|
111 | 118 | |
112 | 119 | private: |
113 | 120 | // The top of the stack of calls for the current thread. |
114 | | static tss_ptr<context> top_; |
| 121 | BOOST_ASIO_DECL_WINDOWS static tss_ptr<context> top_; |
115 | 122 | }; |
116 | 123 | |
117 | | template <typename Key, typename Value> |
118 | | tss_ptr<typename call_stack<Key, Value>::context> |
119 | | call_stack<Key, Value>::top_; |
120 | | |
121 | 124 | } // namespace detail |
122 | 125 | } // namespace asio |
123 | 126 | } // namespace boost |
124 | 127 | |
125 | 128 | #include <boost/asio/detail/pop_options.hpp> |
126 | 129 | |
| 130 | #if defined(BOOST_ASIO_HEADER_ONLY) |
| 131 | # include <boost/asio/detail/call_stack.ipp> |
| 132 | #endif // defined(BOOST_ASIO_HEADER_ONLY) |
| 133 | |
127 | 134 | #endif // BOOST_ASIO_DETAIL_CALL_STACK_HPP |
diff -urN boost_1_55_0.orig/boost/asio/detail/call_stack.ipp boost_1_55_0/boost/asio/detail/call_stack.ipp
old
|
new
|
|
| 1 | // |
| 2 | // detail/call_stack.ipp |
| 3 | // ~~~~~~~~~~~~~~~~~~~~~ |
| 4 | // |
| 5 | // Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com) |
| 6 | // |
| 7 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 8 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 9 | // |
| 10 | |
| 11 | #ifndef BOOST_ASIO_DETAIL_CALL_STACK_IPP |
| 12 | #define BOOST_ASIO_DETAIL_CALL_STACK_IPP |
| 13 | |
| 14 | #if defined(_MSC_VER) && (_MSC_VER >= 1200) |
| 15 | # pragma once |
| 16 | #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) |
| 17 | |
| 18 | #include <boost/asio/detail/config.hpp> |
| 19 | |
| 20 | #include <boost/asio/detail/call_stack.hpp> |
| 21 | |
| 22 | #include <boost/asio/detail/push_options.hpp> |
| 23 | |
| 24 | namespace boost { |
| 25 | namespace asio { |
| 26 | namespace detail { |
| 27 | |
| 28 | template <typename Key, typename Value> |
| 29 | tss_ptr<typename call_stack<Key, Value>::context> |
| 30 | BOOST_ASIO_DECL_WINDOWS call_stack<Key, Value>::top_; |
| 31 | |
| 32 | } // namespace detail |
| 33 | } // namespace asio |
| 34 | } // namespace boost |
| 35 | |
| 36 | #include <boost/asio/detail/pop_options.hpp> |
| 37 | |
| 38 | #endif // BOOST_ASIO_DETAIL_CALL_STACK_IPP |
diff -urN boost_1_55_0.orig/boost/asio/impl/src.hpp boost_1_55_0/boost/asio/impl/src.hpp
old
|
new
|
|
23 | 23 | #include <boost/asio/impl/handler_alloc_hook.ipp> |
24 | 24 | #include <boost/asio/impl/io_service.ipp> |
25 | 25 | #include <boost/asio/impl/serial_port_base.ipp> |
| 26 | #include <boost/asio/detail/call_stack.ipp> |
26 | 27 | #include <boost/asio/detail/impl/buffer_sequence_adapter.ipp> |
27 | 28 | #include <boost/asio/detail/impl/descriptor_ops.ipp> |
28 | 29 | #include <boost/asio/detail/impl/dev_poll_reactor.ipp> |