Rizin
unix-like reverse engineering framework and cli tools
version.h
Go to the documentation of this file.
1 
6 /*
7  * Author: Lasse Collin
8  *
9  * This file has been put into the public domain.
10  * You can do whatever you want with this file.
11  *
12  * See ../lzma.h for information about liblzma as a whole.
13  */
14 
15 #ifndef LZMA_H_INTERNAL
16 # error Never include this file directly. Use <lzma.h> instead.
17 #endif
18 
19 
20 /*
21  * Version number split into components
22  */
23 #define LZMA_VERSION_MAJOR 5
24 #define LZMA_VERSION_MINOR 2
25 #define LZMA_VERSION_PATCH 5
26 #define LZMA_VERSION_STABILITY LZMA_VERSION_STABILITY_STABLE
27 
28 #ifndef LZMA_VERSION_COMMIT
29 # define LZMA_VERSION_COMMIT ""
30 #endif
31 
32 
33 /*
34  * Map symbolic stability levels to integers.
35  */
36 #define LZMA_VERSION_STABILITY_ALPHA 0
37 #define LZMA_VERSION_STABILITY_BETA 1
38 #define LZMA_VERSION_STABILITY_STABLE 2
39 
40 
57 #define LZMA_VERSION (LZMA_VERSION_MAJOR * UINT32_C(10000000) \
58  + LZMA_VERSION_MINOR * UINT32_C(10000) \
59  + LZMA_VERSION_PATCH * UINT32_C(10) \
60  + LZMA_VERSION_STABILITY)
61 
62 
63 /*
64  * Macros to construct the compile-time version string
65  */
66 #if LZMA_VERSION_STABILITY == LZMA_VERSION_STABILITY_ALPHA
67 # define LZMA_VERSION_STABILITY_STRING "alpha"
68 #elif LZMA_VERSION_STABILITY == LZMA_VERSION_STABILITY_BETA
69 # define LZMA_VERSION_STABILITY_STRING "beta"
70 #elif LZMA_VERSION_STABILITY == LZMA_VERSION_STABILITY_STABLE
71 # define LZMA_VERSION_STABILITY_STRING ""
72 #else
73 # error Incorrect LZMA_VERSION_STABILITY
74 #endif
75 
76 #define LZMA_VERSION_STRING_C_(major, minor, patch, stability, commit) \
77  #major "." #minor "." #patch stability commit
78 
79 #define LZMA_VERSION_STRING_C(major, minor, patch, stability, commit) \
80  LZMA_VERSION_STRING_C_(major, minor, patch, stability, commit)
81 
82 
92 #define LZMA_VERSION_STRING LZMA_VERSION_STRING_C( \
93  LZMA_VERSION_MAJOR, LZMA_VERSION_MINOR, \
94  LZMA_VERSION_PATCH, LZMA_VERSION_STABILITY_STRING, \
95  LZMA_VERSION_COMMIT)
96 
97 
98 /* #ifndef is needed for use with windres (MinGW or Cygwin). */
99 #ifndef LZMA_H_INTERNAL_RC
100 
108 extern LZMA_API(uint32_t) lzma_version_number(void)
110 
111 
118 extern LZMA_API(const char *) lzma_version_string(void)
120 
121 #endif
#define lzma_attr_const
Definition: lzma.h:269
#define lzma_nothrow
Definition: lzma.h:231
unsigned int uint32_t
Definition: sftypes.h:29
LZMA_API(uint32_t) lzma_version_number(void) lzma_nothrow lzma_attr_const
Run-time version number as an integer.