mirror of
https://git.tukaani.org/xz.git
synced 2025-02-17 14:08:12 +00:00
liblzma: Fix compilation of price_tablegen.c.
It is built and run only manually so this didn't matter unless one wanted to regenerate the price_table.c. (cherry picked from commit 8e4ec794836bc1701d8c9bd5e347b8ce8cc5bbb4) (cherry picked from commit 65b5ee071697e4fe4c2a31c14c1d68b727f1654c)
This commit is contained in:
parent
594b64742f
commit
fda91a5d77
@ -15,6 +15,11 @@
|
|||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
// Make it compile without common.h.
|
||||||
|
#define BUILDING_PRICE_TABLEGEN
|
||||||
|
#define lzma_attr_visibility_hidden
|
||||||
|
|
||||||
#include "range_common.h"
|
#include "range_common.h"
|
||||||
#include "price.h"
|
#include "price.h"
|
||||||
|
|
||||||
|
@ -14,7 +14,10 @@
|
|||||||
#ifndef LZMA_RANGE_COMMON_H
|
#ifndef LZMA_RANGE_COMMON_H
|
||||||
#define LZMA_RANGE_COMMON_H
|
#define LZMA_RANGE_COMMON_H
|
||||||
|
|
||||||
#include "common.h"
|
// Skip common.h if building price_tablegen.c.
|
||||||
|
#ifndef BUILDING_PRICE_TABLEGEN
|
||||||
|
# include "common.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
///////////////
|
///////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user