From: Brad King Date: Wed, 21 Oct 2015 15:47:41 +0000 (-0400) Subject: Define ARCHIVE_VERSION_NUMBER before first use X-Git-Tag: v3.1.900a~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58a482eb85040db96af91ecc56a10b4fcda10c3f;p=thirdparty%2Flibarchive.git Define ARCHIVE_VERSION_NUMBER before first use --- diff --git a/libarchive/archive.h b/libarchive/archive.h index d3ff9b0d0..4724c0d4f 100644 --- a/libarchive/archive.h +++ b/libarchive/archive.h @@ -28,6 +28,16 @@ #ifndef 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 #include /* for wchar_t */ #include /* For FILE * */ @@ -134,16 +144,6 @@ extern "C" { * header and library are very different, you should expect some * 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); /*