Small windows build adjustments
This commit is contained in:
parent
cd6ee917c1
commit
799190b702
@ -32,6 +32,9 @@ overriden in the c++ code by ifdefs _WIN32 anyway */
|
|||||||
/* Define to 1 if you have the `dl' library (-ldl). */
|
/* Define to 1 if you have the `dl' library (-ldl). */
|
||||||
#define HAVE_LIBDL 1
|
#define HAVE_LIBDL 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `pthread' library (-lpthread). */
|
||||||
|
#define HAVE_LIBPTHREAD 1
|
||||||
|
|
||||||
/* Define to 1 if you have the `z' library (-lz). */
|
/* Define to 1 if you have the `z' library (-lz). */
|
||||||
#define HAVE_LIBZ 1
|
#define HAVE_LIBZ 1
|
||||||
|
|
||||||
@ -109,7 +112,7 @@ overriden in the c++ code by ifdefs _WIN32 anyway */
|
|||||||
#define PACKAGE_NAME "Recoll"
|
#define PACKAGE_NAME "Recoll"
|
||||||
|
|
||||||
/* Define to the full name and version of this package. */
|
/* Define to the full name and version of this package. */
|
||||||
#define PACKAGE_STRING "Recoll 1.23.1-x"
|
#define PACKAGE_STRING "Recoll 1.23.3"
|
||||||
|
|
||||||
/* Define to the one symbol short name of this package. */
|
/* Define to the one symbol short name of this package. */
|
||||||
#define PACKAGE_TARNAME "recoll"
|
#define PACKAGE_TARNAME "recoll"
|
||||||
@ -118,13 +121,13 @@ overriden in the c++ code by ifdefs _WIN32 anyway */
|
|||||||
#define PACKAGE_URL ""
|
#define PACKAGE_URL ""
|
||||||
|
|
||||||
/* Define to the version of this package. */
|
/* Define to the version of this package. */
|
||||||
#define PACKAGE_VERSION "1.23.1-x"
|
#define PACKAGE_VERSION "1.23.3"
|
||||||
|
|
||||||
/* putenv parameter is const */
|
/* putenv parameter is const */
|
||||||
/* #undef PUTENV_ARG_CONST */
|
/* #undef PUTENV_ARG_CONST */
|
||||||
|
|
||||||
/* iconv parameter 2 is const char** */
|
/* Define as const if the declaration of iconv() needs const. */
|
||||||
#define RCL_ICONV_INBUF_CONST 1
|
#define ICONV_CONST
|
||||||
|
|
||||||
/* Real time monitoring option */
|
/* Real time monitoring option */
|
||||||
#undef RCL_MONITOR
|
#undef RCL_MONITOR
|
||||||
|
|||||||
@ -36,6 +36,17 @@
|
|||||||
#include "rclaspell.h"
|
#include "rclaspell.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// This would more logically live in recollindex.cpp, but then librecoll would
|
||||||
|
// have an undefined symbol
|
||||||
|
ConfSimple idxreasons;
|
||||||
|
void addIdxReason(string who, string reason)
|
||||||
|
{
|
||||||
|
reason = neutchars(reason, "\r\n");
|
||||||
|
if (!idxreasons.set(who, reason)) {
|
||||||
|
std::cerr << "addIdxReason: confsimple set failed\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ConfIndexer::ConfIndexer(RclConfig *cnf, DbIxStatusUpdater *updfunc)
|
ConfIndexer::ConfIndexer(RclConfig *cnf, DbIxStatusUpdater *updfunc)
|
||||||
: m_config(cnf), m_db(cnf), m_fsindexer(0),
|
: m_config(cnf), m_db(cnf), m_fsindexer(0),
|
||||||
m_dobeagle(false), m_beagler(0),
|
m_dobeagle(false), m_beagler(0),
|
||||||
|
|||||||
@ -405,31 +405,24 @@ void lockorexit(Pidfile *pidfile)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static ConfSimple reasons;
|
|
||||||
static string reasonsfile;
|
static string reasonsfile;
|
||||||
void addIdxReason(string who, string reason)
|
extern ConfSimple idxreasons;
|
||||||
{
|
|
||||||
reason = neutchars(reason, "\r\n");
|
|
||||||
if (!reasons.set(who, reason)) {
|
|
||||||
cerr << "addIdxReason: confsimple set failed\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
static void flushIdxReasons()
|
static void flushIdxReasons()
|
||||||
{
|
{
|
||||||
if (reasonsfile.empty())
|
if (reasonsfile.empty())
|
||||||
return;
|
return;
|
||||||
if (reasonsfile == "stdout") {
|
if (reasonsfile == "stdout") {
|
||||||
reasons.write(cout);
|
idxreasons.write(cout);
|
||||||
} else if (reasonsfile == "stderr") {
|
} else if (reasonsfile == "stderr") {
|
||||||
reasons.write(cerr);
|
idxreasons.write(std::cerr);
|
||||||
} else {
|
} else {
|
||||||
ofstream out;
|
ofstream out;
|
||||||
try {
|
try {
|
||||||
out.open(reasonsfile, ofstream::out|ofstream::trunc);
|
out.open(reasonsfile, ofstream::out|ofstream::trunc);
|
||||||
reasons.write(out);
|
idxreasons.write(out);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
cerr << "Could not write reasons file " << reasonsfile << endl;
|
cerr << "Could not write reasons file " << reasonsfile << endl;
|
||||||
reasons.write(cerr);
|
idxreasons.write(cerr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||||
|
|
||||||
#define MyAppName "Recoll"
|
#define MyAppName "Recoll"
|
||||||
#define MyAppVersion "1.23.1-20170313-aeb336"
|
#define MyAppVersion "1.23.3-20170904-cd6ee9"
|
||||||
#define MyAppPublisher "Recoll.org"
|
#define MyAppPublisher "Recoll.org"
|
||||||
#define MyAppURL "http://www.recoll.org"
|
#define MyAppURL "http://www.recoll.org"
|
||||||
#define MyAppExeName "recoll.exe"
|
#define MyAppExeName "recoll.exe"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user