Skip to content

Commit

Permalink
fixes for MSVC warnings -- due to our monolithic build mode project f…
Browse files Browse the repository at this point in the history
…iles' approach.
  • Loading branch information
GerHobbelt committed Aug 14, 2024
1 parent 5a1d240 commit b37581b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/liblzma/check/crc32_arm64.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#ifndef LZMA_CRC32_ARM64_H
#define LZMA_CRC32_ARM64_H

#include "crc_common.h"

// MSVC always has the CRC intrinsics available when building for ARM64
// there is no need to include any header files.
#ifndef _MSC_VER
Expand Down
5 changes: 4 additions & 1 deletion src/liblzma/check/crc32_small.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
//
///////////////////////////////////////////////////////////////////////////////

#include "check.h"
#include <lzma.h> // check.h produces an error about direct including it and advising to include lzma.h instead.
#include "crc_common.h"

#ifdef HAVE_SMALL

// The table is used by the LZ encoder too, thus it's not static like
// in crc64_small.c.
Expand Down Expand Up @@ -68,3 +69,5 @@ lzma_crc32(const uint8_t *buf, size_t size, uint32_t crc)

return ~crc;
}

#endif
2 changes: 2 additions & 0 deletions src/liblzma/check/crc_x86_clmul.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#endif
#define LZMA_CRC_X86_CLMUL_H

#include "crc_common.h"

#if BUILDING_CRC_CLMUL != 32 && BUILDING_CRC_CLMUL != 64
# error BUILDING_CRC_CLMUL is undefined or has an invalid value
#endif
Expand Down

0 comments on commit b37581b

Please sign in to comment.