Ticket #1715: serialization_gcc43.patch

File serialization_gcc43.patch, 1.8 KB (added by Maik Beckmann <Beckmann.Maik@…>, 15 years ago)

fix build with GCC-4.3

  • home/maik/workspace/boost/boost/archive/polymorphic_iarchive.hpp

     
    1717//  See http://www.boost.org for updates, documentation, and revision history.
    1818
    1919#include <cstddef> // std::size_t
     20#include <climits> // ULONG_MAX
    2021#include <boost/config.hpp>
    2122
    2223#if defined(BOOST_NO_STDC_NAMESPACE)
     
    3839// i.e. that its not a synonym for (unsigned) long
    3940// if there is no 64 bit int or if its the same as a long
    4041// we shouldn't define separate functions for int64 data types.
     42#ifndef ULONG_MAX
     43# error "ULONG_MAX is not defined"
     44#endif
    4145#if defined(BOOST_NO_INT64_T) \
    4246    || (ULONG_MAX != 0xffffffff && ULONG_MAX == 18446744073709551615u) // 2**64 - 1
    4347#   define BOOST_NO_INTRINSIC_INT64_T
  • home/maik/workspace/boost/boost/archive/polymorphic_oarchive.hpp

     
    1818
    1919#include <cstddef> // size_t
    2020#include <string>
     21#include <climits> // ULONG_MAX
    2122
    2223#include <boost/config.hpp>
    2324#if defined(BOOST_NO_STDC_NAMESPACE)
     
    3738// i.e. that its not a synonym for (unsigned) long
    3839// if there is no 64 bit int or if its the same as a long
    3940// we shouldn't define separate functions for int64 data types.
     41#ifndef ULONG_MAX
     42# error "ULONG_MAX is not defined"
     43#endif
    4044#if defined(BOOST_NO_INT64_T) \
    4145    || (ULONG_MAX != 0xffffffff && ULONG_MAX == 18446744073709551615u) // 2**64 - 1
    4246#   define BOOST_NO_INTRINSIC_INT64_T