Skip to content

Commit

Permalink
chore(deps): improve LZMA dependencies resolution during pre-processing.
Browse files Browse the repository at this point in the history
On OSX, multiple types are not automatically resolved during
pre-processing because different implementations of LZMA in the LZMA
directory have a file named "LZMA.h".

Fixed by renaming them to "LZMA2.h" and "LZMA3.h" while adapting the
include macros.

Discussion: devttys0/sasquatch#6 (comment)
  • Loading branch information
qkaiser committed Feb 22, 2023
1 parent 1166210 commit 1e55eee
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "../LZ/LZOutWindow.h"
#include "../RangeCoder/RangeCoderBitTree.h"

#include "LZMA.h"
#include "LZMA2.h"

namespace NCompress {
namespace NLZMA {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "../LZ/IMatchFinder.h"
#include "../RangeCoder/RangeCoderBitTree.h"

#include "LZMA.h"
#include "LZMA2.h"

namespace NCompress {
namespace NLZMA {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion squashfs-tools/LZMA/lzmalt/LZMADecoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define __LZARITHMETIC_DECODER_H

#include "WindowOut.h"
#include "LZMA.h"
#include "LZMA3.h"
#include "LenCoder.h"
#include "LiteralCoder.h"

Expand Down
1 change: 1 addition & 0 deletions squashfs-tools/xz_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*/

#include "endian_compat.h"
#include <lzma.h>

#if __BYTE_ORDER == __BIG_ENDIAN || defined FIX_BE
extern unsigned int inswap_le32(unsigned int);
Expand Down

0 comments on commit 1e55eee

Please sign in to comment.