Skip to content
Permalink
Browse files

[GRASS] fixed qgis.d.rast binary mode on windows

  • Loading branch information
blazek committed Oct 14, 2015
1 parent b8df524 commit c2692f1fc73066cc6d8658725010898e5aac28ab
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/providers/grass/qgis.d.rast.c
@@ -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

0 comments on commit c2692f1

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