xapian-core  2.0.0
version.h
Go to the documentation of this file.
1 
4 // Copyright (C) 2002-2022 Olly Betts
5 //
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License as
8 // published by the Free Software Foundation; either version 2 of the
9 // License, or (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, see
18 // <https://www.gnu.org/licenses/>.
19 
20 #ifndef XAPIAN_INCLUDED_VERSION_H
21 #define XAPIAN_INCLUDED_VERSION_H
22 
23 #if !defined XAPIAN_IN_XAPIAN_H && !defined XAPIAN_LIB_BUILD
24 # error "Never use <xapian/version.h> directly; include <xapian.h> instead."
25 #endif
26 
27 #ifdef __GNUC__
28 #if !defined __clang__ && !defined __INTEL_COMPILER && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8))
29 #error Xapian no longer supports GCC < 4.8
30 #else
31 #ifdef _GLIBCXX_DEBUG
32 #error You are compiling with _GLIBCXX_DEBUG defined, but the library
33 #error was not compiled with this flag. The settings must match or your
34 #error program will not work correctly.
35 #endif
36 #endif
37 #endif
38 
40 #define XAPIAN_ENABLE_VISIBILITY
41 
43 #define XAPIAN_VERSION "2.0.0"
44 
48 #define XAPIAN_MAJOR_VERSION 2
49 
53 #define XAPIAN_MINOR_VERSION 0
54 
58 #define XAPIAN_REVISION 0
59 
61 #define XAPIAN_DOCID_BASE_TYPE int
62 
64 #define XAPIAN_TERMCOUNT_BASE_TYPE int
65 
67 #define XAPIAN_TERMPOS_BASE_TYPE int
68 
70 #define XAPIAN_TOTALLENGTH_TYPE unsigned long
71 
73 #define XAPIAN_REVISION_TYPE unsigned long
74 
76 #define XAPIAN_HAS_GLASS_BACKEND 1
77 
79 #define XAPIAN_HAS_HONEY_BACKEND 1
80 
82 #define XAPIAN_HAS_INMEMORY_BACKEND 1
83 
85 #define XAPIAN_HAS_REMOTE_BACKEND 1
86 
112 #define XAPIAN_AT_LEAST(A,B,C) \
113  (XAPIAN_MAJOR_VERSION > (A) || \
114  (XAPIAN_MAJOR_VERSION == (A) && \
115  (XAPIAN_MINOR_VERSION > (B) || \
116  (XAPIAN_MINOR_VERSION == (B) && XAPIAN_REVISION >= (C)))))
117 
118 #endif /* XAPIAN_INCLUDED_VERSION_H */