Small windows adjustements for std::mutex changes

This commit is contained in:
Jean-Francois Dockes 2016-07-13 09:27:38 +02:00
parent ab8cf55b1f
commit 9f4e2e2646
4 changed files with 6 additions and 5 deletions

View File

@ -263,7 +263,7 @@ bool maketmpdir(string& tdir, string& reason)
// mkdir. try to make sure that we at least don't shoot ourselves
// in the foot
static std::mutex mmutex;
std::unique_lock lock(mmutex);
std::unique_lock<std::mutex> lock(mmutex);
tdir = path_wingettempfilename(TEXT("rcltmp"));
#endif

View File

@ -1240,9 +1240,9 @@ public:
((flags&SRE_NOSUB) ? regex_constants::nosubs : 0)
)), ok(true), nmatch(nm) {
}
bool ok;
std::regex expr;
std::smatch res;
bool ok;
int nmatch;
};

View File

@ -33,6 +33,7 @@ SOURCES += \
../../index/bglfetcher.cpp \
../../index/checkretryfailed.cpp \
../../index/fetcher.cpp \
../../index/exefetcher.cpp \
../../index/fsfetcher.cpp \
../../index/fsindexer.cpp \
../../index/indexer.cpp \
@ -85,7 +86,6 @@ SOURCES += \
../../utils/conftree.cpp \
../../utils/copyfile.cpp \
../../utils/cpuconf.cpp \
../../utils/debuglog.cpp \
../../utils/ecrontab.cpp \
../../windows/execmd_w.cpp \
../../windows/fnmatch.c \
@ -93,6 +93,7 @@ SOURCES += \
../../utils/fstreewalk.cpp \
../../utils/hldata.cpp \
../../utils/idfile.cpp \
../../utils/log.cpp \
../../utils/md5.cpp \
../../utils/md5ut.cpp \
../../utils/mimeparse.cpp \
@ -115,7 +116,7 @@ INCLUDEPATH += ../../common ../../index ../../internfile ../../query \
windows {
contains(QMAKE_CC, gcc){
# MingW
QMAKE_CXXFLAGS += -std=c++11 -Wno-unused-parameter
QMAKE_CXXFLAGS += -std=c++11 -pthread -Wno-unused-parameter
}
contains(QMAKE_CC, cl){
# Visual Studio

View File

@ -25,7 +25,7 @@ INCLUDEPATH += ../../common ../../index ../../internfile ../../query \
windows {
contains(QMAKE_CC, gcc){
# MingW
QMAKE_CXXFLAGS += -std=c++11 -Wno-unused-parameter
QMAKE_CXXFLAGS += -std=c++11 -pthread -Wno-unused-parameter
}
contains(QMAKE_CC, cl){
# Visual Studio