diff options
author | perky <perky@FreeBSD.org> | 2004-08-14 13:32:42 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2004-08-14 13:32:42 +0800 |
commit | cc4c3ca0d8a24146881f4781b6a9c1275f0a5668 (patch) | |
tree | d10845403addc151af6b208ef60bf80c8a6f79bd /archivers/py-lzma | |
parent | 5586aeed5d17517625b0b4ebb1cb704ad12be1ac (diff) | |
download | freebsd-ports-gnome-cc4c3ca0d8a24146881f4781b6a9c1275f0a5668.tar.gz freebsd-ports-gnome-cc4c3ca0d8a24146881f4781b6a9c1275f0a5668.tar.zst freebsd-ports-gnome-cc4c3ca0d8a24146881f4781b6a9c1275f0a5668.zip |
Fix build for gcc 3.4.
Spotted by: kris
Diffstat (limited to 'archivers/py-lzma')
-rw-r--r-- | archivers/py-lzma/files/patch-RangeCoderBit.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/archivers/py-lzma/files/patch-RangeCoderBit.h b/archivers/py-lzma/files/patch-RangeCoderBit.h new file mode 100644 index 000000000000..eb527eddfa7b --- /dev/null +++ b/archivers/py-lzma/files/patch-RangeCoderBit.h @@ -0,0 +1,20 @@ +--- 7zip/7zip/Compress/LZMA/../RangeCoder/RangeCoderBit.h.orig Wed Apr 28 07:17:33 2004 ++++ 7zip/7zip/Compress/LZMA/../RangeCoder/RangeCoderBit.h Sat Aug 14 14:30:03 2004 +@@ -38,6 +38,8 @@ + UINT32 Probability; + void UpdateModel(UINT32 symbol) + { ++#define Probability (this->Probability) ++#define UpdateModel (this->UpdateModel) + /* + Probability -= (Probability + ((symbol - 1) & ((1 << aNumMoveBits) - 1))) >> aNumMoveBits; + Probability += (1 - symbol) << (kNumBitModelTotalBits - aNumMoveBits); +@@ -100,6 +102,8 @@ + } + } + }; ++#undef Probability ++#undef UpdateModel + + }} + |