Skip to content
Permalink
Browse files

Merge pull request #33836 from kadas-albireo/serverbuild

Fix server mingw build
  • Loading branch information
pblottiere committed Feb 7, 2020
2 parents 578616c + 6742826 commit ddaf839209f4b4432a2af5b234934dd5aac8fa3d
Showing with 8 additions and 5 deletions.
  1. +8 −5 src/server/qgsserver.cpp
@@ -290,11 +290,14 @@ bool QgsServer::init()

void QgsServer::putenv( const QString &var, const QString &val )
{
#ifdef _MSC_VER
_putenv_s( var.toStdString().c_str(), val.toStdString().c_str() );
#else
setenv( var.toStdString().c_str(), val.toStdString().c_str(), 1 );
#endif
if ( val.isEmpty() )
{
qunsetenv( var.toUtf8().data() );
}
else
{
qputenv( var.toUtf8().data(), val.toUtf8() );
}
sSettings()->load( var );
}

0 comments on commit ddaf839

Please sign in to comment.
You can’t perform that action at this time.