forked from qt-creator/qt-creator
CodeModelBackend: Fix compile for gcc 4.7.3
Introduced with e2f8a9883b
Change-Id: I16d04388a8c341f93ed7c3579677f3884a123f66
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
9da6ac9022
commit
431ab9bd65
@@ -49,7 +49,7 @@ ConnectionServer::ConnectionServer(const QString &connectionName)
|
||||
|
||||
connect(&localServer, &QLocalServer::newConnection, this, &ConnectionServer::handleNewConnection);
|
||||
std::atexit(&ConnectionServer::removeServer);
|
||||
#if defined(Q_OS_LINUX)
|
||||
#if defined(_GLIBCXX_HAVE_AT_QUICK_EXIT)
|
||||
std::at_quick_exit(&ConnectionServer::removeServer);
|
||||
#endif
|
||||
std::set_terminate(&ConnectionServer::removeServer);
|
||||
|
Reference in New Issue
Block a user