Skip to content

Commit

Permalink
[GRASS] fixed qgis.d.rast binary mode on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Oct 14, 2015
1 parent b8df524 commit c2692f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/grass/qgis.d.rast.c
Expand Up @@ -200,7 +200,8 @@ static int cell_draw( char *name,
set = G_malloc( ncols );

/* some buggy C libraries require BOTH setmode() and fdopen(bin) */
#ifdef Q_OS_WIN
// Do not use Q_OS_WIN, we are in C file, no Qt headers
#ifdef WIN32
if ( _setmode( _fileno( stdout ), _O_BINARY ) == -1 )
G_fatal_error( "Cannot set stdout mode" );
#endif
Expand Down

0 comments on commit c2692f1

Please sign in to comment.