X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib%2Fdecompress_common.h;h=fab3c3e009413c4ef9ed4b9f0a4a6a3a672cc1a9;hp=d6c9089909864b87b98ea753a74fcfe6dcbb6dfe;hb=31786dbc470c919893bf4fc5cc91a0f73cbee720;hpb=f90b1375dd7d3b64fe823ae693083f82019a02f9 diff --git a/include/wimlib/decompress_common.h b/include/wimlib/decompress_common.h index d6c90899..fab3c3e0 100644 --- a/include/wimlib/decompress_common.h +++ b/include/wimlib/decompress_common.h @@ -15,11 +15,6 @@ #include "wimlib/endianness.h" #include "wimlib/types.h" -#ifndef INPUT_IDX_T_DEFINED -#define INPUT_IDX_T_DEFINED -typedef u32 input_idx_t; -#endif - /* Structure to encapsulate a block of in-memory data that is being interpreted * as a stream of bits. * @@ -39,13 +34,13 @@ struct input_bitstream { const u8 *data; /* Number of bytes of data that are left. */ - input_idx_t data_bytes_left; + u32 data_bytes_left; }; /* Initializes a bitstream to receive its input from @data. */ static inline void init_input_bitstream(struct input_bitstream *istream, - const void *data, input_idx_t num_data_bytes) + const void *data, u32 num_data_bytes) { istream->bitbuf = 0; istream->bitsleft = 0;