Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed May 5, 2014
1 parent 6d5df6b commit c1c9d3f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mapserver/qgis_map_serv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,11 @@ int main( int argc, char * argv[] )
{
if ( !logFile.isEmpty() )
{
setenv( "QGIS_LOG_FILE", logFile.toLocal8Bit().data(), 1 );
#ifdef Q_WS_WIN
putenv( QString( "QGIS_LOG_FILE=%1" ).arg( logFile ).toLocal8Bit().constData() );
#else
setenv( "QGIS_LOG_FILE", logFile.toLocal8Bit().constData(), 1 );
#endif
}

printRequestInfos(); //print request infos if in debug mode
Expand Down

0 comments on commit c1c9d3f

Please sign in to comment.