mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
liblzma: Fix compilation of fastpos_tablegen.c.
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.
This commit is contained in:
parent
9b1268538b
commit
d90ed84db9
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,8 @@
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#define lzma_attr_visibility_hidden
|
||||||
#include "fastpos.h"
|
#include "fastpos.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue