]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Define ARCHIVE_VERSION_NUMBER before first use
authorBrad King <brad.king@kitware.com>
Wed, 21 Oct 2015 15:47:41 +0000 (11:47 -0400)
committerBrad King <brad.king@kitware.com>
Mon, 26 Oct 2015 12:58:27 +0000 (08:58 -0400)
libarchive/archive.h

index d3ff9b0d0b8959af646a5d17221783062a8935b2..4724c0d4f6949cb75ae791afbd22bcf458957d52 100644 (file)
 #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 <sys/stat.h>
 #include <stddef.h>  /* for wchar_t */
 #include <stdio.h> /* 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);
 
 /*