Skip to content

Commit

Permalink
liblzma: Fix compilation of fastpos_tablegen.c.
Browse files Browse the repository at this point in the history
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: #69
Thanks to GitHub user Jamaika1.
  • Loading branch information
Larhzu committed Oct 31, 2023
1 parent 148e206 commit 4600704
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/liblzma/lzma/fastpos_tablegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

#include <inttypes.h>
#include <stdio.h>

#define lzma_attr_visibility_hidden
#include "fastpos.h"


Expand Down

0 comments on commit 4600704

Please sign in to comment.