Skip to content

Commit

Permalink
get ebiggers code compiling with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
maharmstone committed Jan 5, 2021
1 parent 9447d8a commit 3646703
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ebiggers/decompress_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ read_huffsym(struct input_bitstream *is, const u16 decode_table[],
* table for a Huffman code.
*/
#define DECODE_TABLE_WORKING_SPACE(name, num_syms, max_codeword_len) \
u16 name[2 * ((max_codeword_len) + 1) + (num_syms)];
u16 name[2 * ((max_codeword_len) + 1) + (num_syms)]

extern int
make_huffman_decode_table(u16 decode_table[], unsigned num_syms,
Expand Down
6 changes: 3 additions & 3 deletions src/ebiggers/lzx_decompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,9 @@ lzx_decompress_block(struct lzx_decompressor *d, struct input_bitstream *is,
}

int
lzx_decompress(struct lzx_decompressor *restrict d,
const void *restrict compressed_data, size_t compressed_size,
void *restrict uncompressed_data, size_t uncompressed_size)
lzx_decompress(struct lzx_decompressor *d,
const void *compressed_data, size_t compressed_size,
void *uncompressed_data, size_t uncompressed_size)
{
u8 * const out_begin = uncompressed_data;
u8 *out_next = out_begin;
Expand Down
6 changes: 3 additions & 3 deletions src/ebiggers/xpress_decompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ struct xpress_decompressor {
} _aligned_attribute(DECODE_TABLE_ALIGNMENT);

int
xpress_decompress(struct xpress_decompressor *restrict d,
const void *restrict compressed_data, size_t compressed_size,
void *restrict uncompressed_data, size_t uncompressed_size)
xpress_decompress(struct xpress_decompressor * d,
const void *compressed_data, size_t compressed_size,
void *uncompressed_data, size_t uncompressed_size)
{
const u8 * const in_begin = compressed_data;
u8 * const out_begin = uncompressed_data;
Expand Down

0 comments on commit 3646703

Please sign in to comment.