xapian-core  1.4.31
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, 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 #ifdef _GLIBCXX_DEBUG
28 #error You are compiling with _GLIBCXX_DEBUG defined, but the library
29 #error was not compiled with this flag. The settings must match or your
30 #error program will not work correctly.
31 #endif
32 #endif
33 #endif
34 
36 #define XAPIAN_ENABLE_VISIBILITY
37 
39 #define XAPIAN_VERSION "1.4.31"
40 
44 #define XAPIAN_MAJOR_VERSION 1
45 
49 #define XAPIAN_MINOR_VERSION 4
50 
54 #define XAPIAN_REVISION 31
55 
57 #define XAPIAN_DOCID_BASE_TYPE int
58 
60 #define XAPIAN_TERMCOUNT_BASE_TYPE int
61 
63 #define XAPIAN_TERMPOS_BASE_TYPE int
64 
66 #define XAPIAN_TOTALLENGTH_TYPE unsigned long
67 
69 #define XAPIAN_REVISION_TYPE unsigned long
70 
72 #define XAPIAN_HAS_CHERT_BACKEND 1
73 
75 #define XAPIAN_HAS_GLASS_BACKEND 1
76 
78 #define XAPIAN_HAS_INMEMORY_BACKEND 1
79 
81 #define XAPIAN_HAS_REMOTE_BACKEND 1
82 
108 #define XAPIAN_AT_LEAST(A,B,C) \
109  (XAPIAN_MAJOR_VERSION > (A) || \
110  (XAPIAN_MAJOR_VERSION == (A) && \
111  (XAPIAN_MINOR_VERSION > (B) || \
112  (XAPIAN_MINOR_VERSION == (B) && XAPIAN_REVISION >= (C)))))
113 
123 #ifndef XAPIAN_MOVE_SEMANTICS
124 # if __cplusplus >= 201103L || \
125  (defined _MSC_VER && _MSC_VER >= 1900) || \
126  defined XAPIAN_LIB_BUILD
127 # define XAPIAN_MOVE_SEMANTICS
128 # endif
129 #endif
130 
131 #endif /* XAPIAN_INCLUDED_VERSION_H */