|
xapian-core
1.4.31
|
Define preprocessor symbols for the library version. More...
Macros | |
| #define | XAPIAN_ENABLE_VISIBILITY |
| The library was compiled with GCC's -fvisibility=hidden option. | |
| #define | XAPIAN_VERSION "1.4.31" |
| The version of Xapian as a C string literal. | |
| #define | XAPIAN_MAJOR_VERSION 1 |
| The major component of the Xapian version. | |
| #define | XAPIAN_MINOR_VERSION 4 |
| The minor component of the Xapian version. | |
| #define | XAPIAN_REVISION 31 |
| The revision component of the Xapian version. | |
| #define | XAPIAN_DOCID_BASE_TYPE int |
| Base (signed) type for Xapian::docid and related types. | |
| #define | XAPIAN_TERMCOUNT_BASE_TYPE int |
| Base (signed) type for Xapian::termcount and related types. | |
| #define | XAPIAN_TERMPOS_BASE_TYPE int |
| Base (signed) type for Xapian::termpos. | |
| #define | XAPIAN_TOTALLENGTH_TYPE unsigned long |
| Type for returning total document length. | |
| #define | XAPIAN_REVISION_TYPE unsigned long |
| Underlying type for Xapian::rev. | |
| #define | XAPIAN_HAS_CHERT_BACKEND 1 |
| XAPIAN_HAS_CHERT_BACKEND Defined if the chert backend is enabled. | |
| #define | XAPIAN_HAS_GLASS_BACKEND 1 |
| XAPIAN_HAS_GLASS_BACKEND Defined if the glass backend is enabled. | |
| #define | XAPIAN_HAS_INMEMORY_BACKEND 1 |
| XAPIAN_HAS_INMEMORY_BACKEND Defined if the inmemory backend is enabled. | |
| #define | XAPIAN_HAS_REMOTE_BACKEND 1 |
| XAPIAN_HAS_REMOTE_BACKEND Defined if the remote backend is enabled. | |
| #define | XAPIAN_AT_LEAST(A, B, C) |
| XAPIAN_AT_LEAST(A,B,C) checks for xapian-core >= A.B.C - use like so: | |
Define preprocessor symbols for the library version.
| #define XAPIAN_AT_LEAST | ( | A, | |
| B, | |||
| C ) |
XAPIAN_AT_LEAST(A,B,C) checks for xapian-core >= A.B.C - use like so:
XAPIAN_AT_LEAST was added in Xapian 1.4.2. This was released 2016-12-26 so is now a reasonable hard requirement.
If you really want to support older versions beware that a check like:
#if defined XAPIAN_AT_LEAST && XAPIAN_AT_LEAST(1,4,12)
works with newer Xapian but fails to compile if the macro is not defined:
error: missing binary operator before token ‘(’
In this situation we recommend copying the definition of XAPIAN_AT_LEAST into your code and wrapping it in #ifndef XAPIAN_AT_LEAST ... #endif so you can use it unconditionally.
| #define XAPIAN_MAJOR_VERSION 1 |
| #define XAPIAN_MINOR_VERSION 4 |