We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8df524 commit c2692f1Copy full SHA for c2692f1
src/providers/grass/qgis.d.rast.c
@@ -200,7 +200,8 @@ static int cell_draw( char *name,
200
set = G_malloc( ncols );
201
202
/* some buggy C libraries require BOTH setmode() and fdopen(bin) */
203
-#ifdef Q_OS_WIN
+ // Do not use Q_OS_WIN, we are in C file, no Qt headers
204
+#ifdef WIN32
205
if ( _setmode( _fileno( stdout ), _O_BINARY ) == -1 )
206
G_fatal_error( "Cannot set stdout mode" );
207
#endif
0 commit comments