Ticket #3352: boost_zlib.diff

File boost_zlib.diff, 961 bytes (added by thomas.suckow@…, 13 years ago)

Patch

  • boost/iostreams/filter/zlib.hpp

     
    2020#include <memory>            // allocator, bad_alloc.
    2121#include <new>         
    2222#include <boost/config.hpp>  // MSVC, STATIC_CONSTANT, DEDUCED_TYPENAME, DINKUM.
     23#include <boost/cstdint.hpp> // uint*_t
    2324#include <boost/detail/workaround.hpp>
    2425#include <boost/iostreams/constants.hpp>   // buffer size.
    2526#include <boost/iostreams/detail/config/auto_link.hpp>
     
    4344namespace zlib {
    4445                    // Typedefs
    4546
    46 typedef unsigned int uint;
    47 typedef unsigned char byte;
    48 typedef unsigned long ulong;
     47typedef uint32_t uint;
     48typedef uint8_t byte;
     49typedef uint32_t ulong;
    4950
    5051// Prefix 'x' prevents symbols from being redefined when Z_PREFIX is defined
    5152typedef void* (*xalloc_func)(void*, zlib::uint, zlib::uint);