libarchive: Silence API deprecation warnings
CMake uses old libarchive APIs for now.
This commit is contained in:
parent
677384017a
commit
bae3a73cee
|
@ -104,11 +104,8 @@
|
||||||
#define __LA_PRINTF(fmtarg, firstvararg) /* nothing */
|
#define __LA_PRINTF(fmtarg, firstvararg) /* nothing */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__GNUC__) && __GNUC__ >= 3 && __GNUC_MINOR__ >= 1
|
/* CMake uses some deprecated APIs to build with old libarchive versions. */
|
||||||
# define __LA_DEPRECATED __attribute__((deprecated))
|
|
||||||
#else
|
|
||||||
#define __LA_DEPRECATED
|
#define __LA_DEPRECATED
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
Loading…
Reference in New Issue