xapian-core  1.4.20
version.h
Go to the documentation of this file.
1 
4 // Copyright (C) 2002,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2015,2016,2017,2018,2020 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, write to the Free Software
18 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 
20 #ifndef XAPIAN_INCLUDED_VERSION_H
21 #define XAPIAN_INCLUDED_VERSION_H
22 
23 #ifdef __GNUC__
24 #if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ == 0)
25 #error Xapian no longer supports GCC < 3.1
26 #else
27 #if !defined(__GXX_ABI_VERSION) || __GXX_ABI_VERSION != 1013
28 #if defined __GXX_ABI_VERSION && __GXX_ABI_VERSION >= 1002
29 #warning The C++ ABI version of compiler you are using does not exactly match
30 #warning that of the compiler used to build the library. If linking fails
31 #warning due to missing symbols, this is probably the reason why.
32 #warning The Xapian library was built with g++ 8.3.0
33 #else
34 #error The C++ ABI version of compiler you are using does not match
35 #error that of the compiler used to build the library. The versions
36 #error must match or your program will not work correctly.
37 #error The Xapian library was built with g++ 8.3.0
38 #endif
39 #endif
40 
41 #ifdef _GLIBCXX_DEBUG
42 #error You are compiling with _GLIBCXX_DEBUG defined, but the library
43 #error was not compiled with this flag. The settings must match or your
44 #error program will not work correctly.
45 #endif
46 #endif
47 #endif
48 
50 #define XAPIAN_ENABLE_VISIBILITY
51 
53 #define XAPIAN_VERSION "1.4.20"
54 
58 #define XAPIAN_MAJOR_VERSION 1
59 
63 #define XAPIAN_MINOR_VERSION 4
64 
68 #define XAPIAN_REVISION 20
69 
71 #define XAPIAN_DOCID_BASE_TYPE int
72 
74 #define XAPIAN_TERMCOUNT_BASE_TYPE int
75 
77 #define XAPIAN_TERMPOS_BASE_TYPE int
78 
80 #define XAPIAN_TOTALLENGTH_TYPE unsigned long
81 
83 #define XAPIAN_REVISION_TYPE unsigned long
84 
86 #define XAPIAN_HAS_CHERT_BACKEND 1
87 
89 #define XAPIAN_HAS_GLASS_BACKEND 1
90 
92 #define XAPIAN_HAS_INMEMORY_BACKEND 1
93 
95 #define XAPIAN_HAS_REMOTE_BACKEND 1
96 
106 #define XAPIAN_AT_LEAST(A,B,C) \
107  (XAPIAN_MAJOR_VERSION > (A) || \
108  (XAPIAN_MAJOR_VERSION == (A) && \
109  (XAPIAN_MINOR_VERSION > (B) || \
110  (XAPIAN_MINOR_VERSION == (B) && XAPIAN_REVISION >= (C)))))
111 
121 #ifndef XAPIAN_MOVE_SEMANTICS
122 # if __cplusplus >= 201103L || \
123  (defined _MSC_VER && _MSC_VER >= 1900) || \
124  defined XAPIAN_LIB_BUILD
125 # define XAPIAN_MOVE_SEMANTICS
126 # endif
127 #endif
128 
129 #endif /* XAPIAN_INCLUDED_VERSION_H */