]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Fix compilation of fastpos_tablegen.c.
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 31 Oct 2023 19:41:09 +0000 (21:41 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 31 Oct 2023 19:41:09 +0000 (21:41 +0200)
The macro lzma_attr_visibility_hidden has to be defined to make
fastpos.h usable. The visibility attribute is irrelevant to
fastpos_tablegen.c so simply #define the macro to an empty value.

fastpos_tablegen.c is never built by the included build systems
and so the problem wasn't noticed earlier. It's just a standalone
program for generating fastpos_table.c.

Fixes: https://github.com/tukaani-project/xz/pull/69
Thanks to GitHub user Jamaika1.

src/liblzma/lzma/fastpos_tablegen.c

index d4484c82d0b51fd8911a5eb639ef242af5da92dd..57ed15039b2778c9eb29b10192da045e97a6e292 100644 (file)
@@ -13,6 +13,8 @@
 
 #include <inttypes.h>
 #include <stdio.h>
+
+#define lzma_attr_visibility_hidden
 #include "fastpos.h"