libarchive: Define version macro before first use
This commit is contained in:
parent
932848f420
commit
e861e12f6e
|
@ -28,6 +28,16 @@
|
||||||
#ifndef ARCHIVE_H_INCLUDED
|
#ifndef ARCHIVE_H_INCLUDED
|
||||||
#define ARCHIVE_H_INCLUDED
|
#define ARCHIVE_H_INCLUDED
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The version number is expressed as a single integer that makes it
|
||||||
|
* easy to compare versions at build time: for version a.b.c, the
|
||||||
|
* version number is printf("%d%03d%03d",a,b,c). For example, if you
|
||||||
|
* know your application requires version 2.12.108 or later, you can
|
||||||
|
* assert that ARCHIVE_VERSION_NUMBER >= 2012108.
|
||||||
|
*/
|
||||||
|
/* Note: Compiler will complain if this does not match archive_entry.h! */
|
||||||
|
#define ARCHIVE_VERSION_NUMBER 3001002
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <stddef.h> /* for wchar_t */
|
#include <stddef.h> /* for wchar_t */
|
||||||
#include <stdio.h> /* For FILE * */
|
#include <stdio.h> /* For FILE * */
|
||||||
|
@ -138,16 +148,6 @@ extern "C" {
|
||||||
* header and library are very different, you should expect some
|
* header and library are very different, you should expect some
|
||||||
* strangeness. Don't do that.
|
* strangeness. Don't do that.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* The version number is expressed as a single integer that makes it
|
|
||||||
* easy to compare versions at build time: for version a.b.c, the
|
|
||||||
* version number is printf("%d%03d%03d",a,b,c). For example, if you
|
|
||||||
* know your application requires version 2.12.108 or later, you can
|
|
||||||
* assert that ARCHIVE_VERSION_NUMBER >= 2012108.
|
|
||||||
*/
|
|
||||||
/* Note: Compiler will complain if this does not match archive_entry.h! */
|
|
||||||
#define ARCHIVE_VERSION_NUMBER 3001002
|
|
||||||
__LA_DECL int archive_version_number(void);
|
__LA_DECL int archive_version_number(void);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue