Fixed build problem on Windows

--HG--
branch : develop
This commit is contained in:
Valentina Zhuravska 2015-09-18 23:38:11 +03:00
parent 643b84e159
commit 4423d6b937
3 changed files with 11 additions and 5 deletions

View File

@ -688,7 +688,7 @@ void VApplication::GatherLogs() const
*out <<"--------------------------" << endl;
if (tmp.GetProtected()->open(QIODevice::ReadOnly | QIODevice::Text))
{
QTextStream in(&tmp.GetProtected());
QTextStream in(tmp.GetProtected().get());
while (!in.atEnd())
{
*out << in.readLine() << endl;
@ -697,7 +697,7 @@ void VApplication::GatherLogs() const
}
else
{
*out << "Log file error:" + logFile.errorString() << endl;
*out << "Log file error:" + log->errorString() << endl;
}
}
else

View File

@ -114,9 +114,13 @@ static void __inline__ debug_break(void)
* (gdb) handle SIGILL stop nopass
* */
__builtin_trap();
} else {
raise(SIGTRAP);
}
} else {
#ifdef _WIN32
__builtin_trap();
#else
raise(SIGTRAP);
#endif
}
}
#ifdef __cplusplus

View File

@ -51,6 +51,8 @@ $$enable_ccache()
# Set precompiled headers. Function set_PCH() defined in common.pri.
$$set_PCH()
INCLUDEPATH += $$PWD/../vpatterndb
CONFIG(debug, debug|release){
# Debug mode
unix {