rclversion.h must not include xapian.h. Replace with Rcl::version_string()

This commit is contained in:
dockes
2009-10-17 06:38:04 +00:00
parent f61590c31d
commit a27ddc32c4
6 changed files with 20 additions and 10 deletions
+8
View File
@@ -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("?!#@");
+4
View File
@@ -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