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.
This commit is contained in:
parent
e99bff3ffb
commit
8e4ec79483
|
@ -14,6 +14,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"
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,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…
Reference in New Issue