xapian-core  1.4.21
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.21"
40 
44 #define XAPIAN_MAJOR_VERSION 1
45 
49 #define XAPIAN_MINOR_VERSION 4
50 
54 #define XAPIAN_REVISION 21
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 
92 #define XAPIAN_AT_LEAST(A,B,C) \
93  (XAPIAN_MAJOR_VERSION > (A) || \
94  (XAPIAN_MAJOR_VERSION == (A) && \
95  (XAPIAN_MINOR_VERSION > (B) || \
96  (XAPIAN_MINOR_VERSION == (B) && XAPIAN_REVISION >= (C)))))
97 
107 #ifndef XAPIAN_MOVE_SEMANTICS
108 # if __cplusplus >= 201103L || \
109  (defined _MSC_VER && _MSC_VER >= 1900) || \
110  defined XAPIAN_LIB_BUILD
111 # define XAPIAN_MOVE_SEMANTICS
112 # endif
113 #endif
114 
115 #endif /* XAPIAN_INCLUDED_VERSION_H */