shithub: sl

Download patch

ref: 626403160fa0007b46465672f48b8db0f2b79b25
parent: e7ec1e13f5e1814f647bcbc18e73eb6be5ce4f16
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sun Jan 12 12:00:18 EST 2025

brieflz: guard blz_putbits - it's not needed with BLZ_NO_LUT

--- a/3rd/brieflz/brieflz.c
+++ b/3rd/brieflz/brieflz.c
@@ -291,6 +291,7 @@
 	bs->tag = (bs->tag << 1) + bit;
 }
 
+#if !defined(BLZ_NO_LUT)
 static void
 blz_putbits(struct blz_state *bs, unsigned long bits, int num)
 {
@@ -318,6 +319,7 @@
 
 	bs->bits_left -= num;
 }
+#endif
 
 // Encode val using a universal code based on Elias gamma.
 //