af64bd0e16607fe9c0dfed6cd3924ac9ce3f57cb
[boost.git] / boost-gcc43.patch
1 diff -urp boost_1_34_1/boost/spirit/phoenix/operators.hpp boost_1_34_1.pm/boost/spirit/phoenix/operators.hpp
2 --- boost_1_34_1/boost/spirit/phoenix/operators.hpp     2006-08-25 18:27:30.000000000 +0200
3 +++ boost_1_34_1.pm/boost/spirit/phoenix/operators.hpp  2008-02-06 16:29:32.000000000 +0100
4 @@ -24,6 +24,7 @@
5  #include <boost/spirit/phoenix/composite.hpp>
6  #include <boost/config.hpp>
7  #include <boost/mpl/if.hpp>
8 +#include <limits.h>
9  
10  ///////////////////////////////////////////////////////////////////////////////
11  namespace phoenix {
12 diff -urp boost_1_34_1/boost/regex/v4/basic_regex_creator.hpp boost_1_34_1.pm/boost/regex/v4/basic_regex_creator.hpp
13 --- boost_1_34_1/boost/regex/v4/basic_regex_creator.hpp 2006-07-16 18:06:38.000000000 +0200
14 +++ boost_1_34_1.pm/boost/regex/v4/basic_regex_creator.hpp      2008-02-06 17:36:42.000000000 +0100
15 @@ -24,6 +24,8 @@
16  #  include BOOST_ABI_PREFIX
17  #endif
18  
19 +#include <limits.h>
20 +
21  namespace boost{
22  
23  namespace re_detail{
24 diff -urp boost_1_34_1/boost/regex/v4/basic_regex.hpp boost_1_34_1.pm/boost/regex/v4/basic_regex.hpp
25 --- boost_1_34_1/boost/regex/v4/basic_regex.hpp 2007-06-05 19:28:18.000000000 +0200
26 +++ boost_1_34_1.pm/boost/regex/v4/basic_regex.hpp      2008-02-06 17:33:30.000000000 +0100
27 @@ -23,6 +23,8 @@
28  #  include BOOST_ABI_PREFIX
29  #endif
30  
31 +#include <limits.h>
32 +
33  namespace boost{
34  #ifdef BOOST_MSVC
35  #pragma warning(push)
36 diff -urp boost_1_34_1/boost/regex/v4/basic_regex_parser.hpp boost_1_34_1.pm/boost/regex/v4/basic_regex_parser.hpp
37 --- boost_1_34_1/boost/regex/v4/basic_regex_parser.hpp  2008-02-06 17:45:26.000000000 +0100
38 +++ boost_1_34_1.pm/boost/regex/v4/basic_regex_parser.hpp       2008-02-06 17:38:58.000000000 +0100
39 @@ -23,6 +23,8 @@
40  #  include BOOST_ABI_PREFIX
41  #endif
42  
43 +#include <limits.h>
44 +
45  namespace boost{
46  namespace re_detail{
47  
48 diff -urp boost_1_34_1/boost/regex/v4/cpp_regex_traits.hpp boost_1_34_1.pm/boost/regex/v4/cpp_regex_traits.hpp
49 --- boost_1_34_1/boost/regex/v4/cpp_regex_traits.hpp    2007-01-15 12:09:44.000000000 +0100
50 +++ boost_1_34_1.pm/boost/regex/v4/cpp_regex_traits.hpp 2008-02-06 17:26:51.000000000 +0100
51 @@ -41,6 +41,7 @@
52  
53  #include <istream>
54  #include <ios>
55 +#include <limits.h>
56  
57  #ifdef BOOST_HAS_ABI_HEADERS
58  #  include BOOST_ABI_PREFIX
59 diff -urp boost_1_34_1/boost/regex/v4/perl_matcher.hpp boost_1_34_1.pm/boost/regex/v4/perl_matcher.hpp
60 --- boost_1_34_1/boost/regex/v4/perl_matcher.hpp        2006-10-18 14:55:30.000000000 +0200
61 +++ boost_1_34_1.pm/boost/regex/v4/perl_matcher.hpp     2008-02-06 17:39:44.000000000 +0100
62 @@ -18,6 +18,8 @@
63  #  include BOOST_ABI_PREFIX
64  #endif
65  
66 +#include <limits.h>
67 +
68  namespace boost{
69  namespace re_detail{
70  
71 diff -urp boost_1_34_1/boost/regex/v4/regex_split.hpp boost_1_34_1.pm/boost/regex/v4/regex_split.hpp
72 --- boost_1_34_1/boost/regex/v4/regex_split.hpp 2005-01-21 18:22:38.000000000 +0100
73 +++ boost_1_34_1.pm/boost/regex/v4/regex_split.hpp      2008-02-06 17:42:13.000000000 +0100
74 @@ -21,6 +21,8 @@
75  #ifndef BOOST_REGEX_SPLIT_HPP
76  #define BOOST_REGEX_SPLIT_HPP
77  
78 +#include <limits.h>
79 +
80  namespace boost{
81  
82  #ifdef BOOST_HAS_ABI_HEADERS
83 diff -urp boost_1_34_1/boost/regex/v4/states.hpp boost_1_34_1.pm/boost/regex/v4/states.hpp
84 --- boost_1_34_1/boost/regex/v4/states.hpp      2005-09-20 14:01:25.000000000 +0200
85 +++ boost_1_34_1.pm/boost/regex/v4/states.hpp   2008-02-06 17:32:42.000000000 +0100
86 @@ -23,6 +23,8 @@
87  #  include BOOST_ABI_PREFIX
88  #endif
89  
90 +#include <limits.h>
91 +
92  namespace boost{
93  namespace re_detail{
94  
95 diff -urp boost_1_34_1/boost/test/test_tools.hpp boost_1_34_1.pm/boost/test/test_tools.hpp
96 --- boost_1_34_1/boost/test/test_tools.hpp      2007-02-22 18:57:29.000000000 +0100
97 +++ boost_1_34_1.pm/boost/test/test_tools.hpp   2008-02-06 17:18:20.000000000 +0100
98 @@ -44,6 +44,7 @@
99  // STL
100  #include <cstddef>          // for std::size_t
101  #include <iosfwd>
102 +#include <limits.h>
103  
104  #include <boost/test/detail/suppress_warnings.hpp>
105  
106 diff -urp boost_1_34_1/boost/wave/cpplexer/re2clex/cpp_re2c_lexer.hpp boost_1_34_1.pm/boost/wave/cpplexer/re2clex/cpp_re2c_lexer.hpp
107 --- boost_1_34_1/boost/wave/cpplexer/re2clex/cpp_re2c_lexer.hpp 2006-12-20 17:38:24.000000000 +0100
108 +++ boost_1_34_1.pm/boost/wave/cpplexer/re2clex/cpp_re2c_lexer.hpp      2008-02-06 17:25:00.000000000 +0100
109 @@ -16,6 +16,8 @@
110  #include <string>
111  #include <cstdio>
112  #include <cstdarg>
113 +#include <cstring>
114 +
115  #if defined(BOOST_SPIRIT_DEBUG)
116  #include <iostream>
117  #endif // defined(BOOST_SPIRIT_DEBUG)
118 diff -urp boost_1_34_1/boost/wave/util/flex_string.hpp boost_1_34_1.pm/boost/wave/util/flex_string.hpp
119 --- boost_1_34_1/boost/wave/util/flex_string.hpp        2006-04-25 19:21:01.000000000 +0200
120 +++ boost_1_34_1.pm/boost/wave/util/flex_string.hpp     2008-02-06 17:22:31.000000000 +0100
121 @@ -94,6 +94,7 @@ class StoragePolicy
122  #include <limits>
123  #include <stdexcept>
124  #include <cstddef>
125 +#include <cstring>
126  
127  // this must occur after all of the includes and before any code appears
128  #ifdef BOOST_HAS_ABI_HEADERS
129 diff -urp boost_1_34_1/boost/archive/polymorphic_iarchive.hpp boost_1_34_1.pm/boost/archive/polymorphic_iarchive.hpp
130 --- boost_1_34_1/boost/archive/polymorphic_iarchive.hpp 2005-12-11 07:12:51.000000000 +0100
131 +++ boost_1_34_1.pm/boost/archive/polymorphic_iarchive.hpp      2008-02-06 18:42:07.000000000 +0100
132 @@ -33,6 +33,8 @@ namespace std{
133  #include <boost/archive/detail/interface_iarchive.hpp>
134  #include <boost/serialization/nvp.hpp>
135  
136 +#include <limits.h>
137 +
138  // determine if its necessary to handle (u)int64_t specifically
139  // i.e. that its not a synonym for (unsigned) long
140  // if there is no 64 bit int or if its the same as a long
141 diff -urp boost_1_34_1.orig/boost/archive/polymorphic_oarchive.hpp boost_1_34_1/boost/archive/polymorphic_oarchive.hpp
142 --- boost_1_34_1.orig/boost/archive/polymorphic_oarchive.hpp    2008-10-06 15:38:51.000000000 +0200
143 +++ boost_1_34_1/boost/archive/polymorphic_oarchive.hpp 2008-10-06 15:38:57.000000000 +0200
144 @@ -32,6 +32,8 @@ namespace std{
145  #include <boost/archive/detail/interface_oarchive.hpp>
146  #include <boost/serialization/nvp.hpp>
147  
148 +#include <limits.h>
149 +
150  // determine if its necessary to handle (u)int64_t specifically
151  // i.e. that its not a synonym for (unsigned) long
152  // if there is no 64 bit int or if its the same as a long
153 diff -urp boost_1_34_1/boost/date_time/date_facet.hpp boost_1_34_1-pm/boost/date_time/date_facet.hpp
154 --- boost_1_34_1/boost/date_time/date_facet.hpp 2005-09-05 23:10:50.000000000 +0200
155 +++ boost_1_34_1-pm/boost/date_time/date_facet.hpp      2008-02-13 16:07:59.000000000 +0100
156 @@ -429,7 +429,7 @@ namespace boost { namespace date_time {
157      typedef std::basic_string<CharT> string_type;
158      typedef CharT                    char_type;
159      typedef boost::date_time::period_parser<date_type, CharT>  period_parser_type;
160 -    typedef special_values_parser<date_type,CharT> special_values_parser_type; 
161 +    typedef boost::date_time::special_values_parser<date_type,CharT> special_values_parser_type; 
162      typedef std::vector<std::basic_string<CharT> > input_collection_type;
163      typedef format_date_parser<date_type, CharT> format_date_parser_type;
164      // date_generators stuff goes here
165 diff -urp boost_1_34_1/boost/python/detail/def_helper.hpp boost_1_34_1-pm/boost/python/detail/def_helper.hpp
166 --- boost_1_34_1/boost/python/detail/def_helper.hpp     2004-09-16 03:00:28.000000000 +0200
167 +++ boost_1_34_1-pm/boost/python/detail/def_helper.hpp  2008-02-14 13:26:23.000000000 +0100
168 @@ -155,7 +155,7 @@ namespace detail
169            , T3 const&
170            , T4 const&
171            , default_call_policies
172 -          , keywords<0>
173 +          , boost::python::detail::keywords<0>
174            , char const*
175            , void(not_specified::*)()   // A function pointer type which is never an
176                                         // appropriate default implementation
177 diff -urp new-boost/date_time/tz_db_base.hpp old-boost/date_time/tz_db_base.hpp
178 --- boost_1_34_1/boost/date_time/tz_db_base.hpp 2008-06-12 13:03:34.000000000 +0200
179 +++ boost_1_34_1-pm/boost/date_time/tz_db_base.hpp      2008-06-12 12:59:43.000000000 +0200
180 @@ -158,7 +158,7 @@ namespace boost {
181        typedef typename time_zone_type::base_type time_zone_base_type;
182        typedef typename time_zone_type::time_duration_type time_duration_type;
183        typedef time_zone_names_base<char_type> time_zone_names;
184 -      typedef dst_adjustment_offsets<time_duration_type> dst_adjustment_offsets;
185 +      typedef dst_adjustment_offsets<time_duration_type> dst_adjustment_offsets_t;
186        typedef std::basic_string<char_type> string_type;
187  
188        //! Constructs an empty database
189 @@ -346,18 +346,18 @@ namespace boost {
190          time_duration_type utc_offset = 
191            str_from_delimited_time_duration<time_duration_type,char_type>(result[GMTOFFSET]);
192          
193 -        dst_adjustment_offsets adjust(time_duration_type(0,0,0),
194 -                                      time_duration_type(0,0,0),
195 -                                      time_duration_type(0,0,0));
196 +        dst_adjustment_offsets_t adjust(time_duration_type(0,0,0),
197 +                                       time_duration_type(0,0,0),
198 +                                       time_duration_type(0,0,0));
199  
200          boost::shared_ptr<rule_type> rules;
201  
202          if(has_dst){
203 -          adjust = dst_adjustment_offsets(
204 -                                          str_from_delimited_time_duration<time_duration_type,char_type>(result[DSTADJUST]),
205 -                                          str_from_delimited_time_duration<time_duration_type,char_type>(result[START_TIME]),
206 -                                          str_from_delimited_time_duration<time_duration_type,char_type>(result[END_TIME])
207 -                                          );
208 +          adjust = dst_adjustment_offsets_t(
209 +                                           str_from_delimited_time_duration<time_duration_type,char_type>(result[DSTADJUST]),
210 +                                           str_from_delimited_time_duration<time_duration_type,char_type>(result[START_TIME]),
211 +                                           str_from_delimited_time_duration<time_duration_type,char_type>(result[END_TIME])
212 +                                           );
213  
214            rules = 
215              boost::shared_ptr<rule_type>(parse_rules(result[START_DATE_RULE],