27 #ifndef SQUASH_VERSION_H
28 #define SQUASH_VERSION_H
30 #if !defined (SQUASH_H_INSIDE) && !defined (SQUASH_COMPILATION)
31 #error "Only <squash/squash.h> can be included directly."
34 #define SQUASH_VERSION_MAJOR 0
35 #define SQUASH_VERSION_MINOR 7
36 #define SQUASH_VERSION_REVISION 0
37 #define SQUASH_VERSION_API "0.7"
39 #define SQUASH_VERSION(major,minor,revision) (((major) << 16) | ((minor) << 8) | (revision))
40 #define SQUASH_VERSION_CURRENT SQUASH_VERSION(SQUASH_VERSION_MAJOR, SQUASH_VERSION_MINOR, SQUASH_VERSION_REVISION)
42 #define SQUASH_VERSION_EXTRACT_MAJOR(version) (((version) >> 16) & 0xff)
43 #define SQUASH_VERSION_EXTRACT_MINOR(version) (((version) >> 8) & 0xff)
44 #define SQUASH_VERSION_EXTRACT_REVISION(version) ((version) & 0xff)
SQUASH_BEGIN_DECLS SQUASH_API unsigned int squash_version(void)
Get the library version.
SQUASH_API const char * squash_version_api(void)
Get the API version.