rclversion.h must not include xapian.h. Replace with Rcl::version_string()
This commit is contained in:
@@ -33,6 +33,8 @@ static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.154 2008-12-17 16:19:58 dockes Exp
|
||||
using namespace std;
|
||||
#endif /* NO_NAMESPACES */
|
||||
|
||||
#include "xapian/version.h"
|
||||
|
||||
#include "rclconfig.h"
|
||||
#include "rcldb.h"
|
||||
#include "rcldb_p.h"
|
||||
@@ -49,6 +51,7 @@ using namespace std;
|
||||
#include "rclquery.h"
|
||||
#include "rclquery_p.h"
|
||||
#include "md5.h"
|
||||
#include "rclversion.h"
|
||||
|
||||
#ifndef MAX
|
||||
#define MAX(A,B) (A>B?A:B)
|
||||
@@ -70,6 +73,11 @@ static const unsigned int baseTextPosition = 100000;
|
||||
namespace Rcl {
|
||||
#endif
|
||||
|
||||
string version_string(){
|
||||
return string("Recoll ") + string(rclversionstr) + string(" + Xapian ") +
|
||||
string(Xapian::version_string());
|
||||
}
|
||||
|
||||
// Synthetic abstract marker (to discriminate from abstract actually
|
||||
// found in document)
|
||||
const static string rclSyntAbs("?!#@");
|
||||
|
||||
@@ -243,6 +243,10 @@ private:
|
||||
Db& operator=(const Db &) {return *this;};
|
||||
};
|
||||
|
||||
// This has to go somewhere, and as it needs the Xapian version, this is
|
||||
// the most reasonable place.
|
||||
string version_string();
|
||||
|
||||
#ifndef NO_NAMESPACES
|
||||
}
|
||||
#endif // NO_NAMESPACES
|
||||
|
||||
Reference in New Issue
Block a user