]> granicus.if.org Git - graphviz/commitdiff
fix to strange unexpected crash.setmode -> _setmode
authorarif <devnull@localhost>
Fri, 22 Oct 2010 19:50:15 +0000 (19:50 +0000)
committerarif <devnull@localhost>
Fri, 22 Oct 2010 19:50:15 +0000 (19:50 +0000)
lib/gvc/gvdevice.c

index dd5800e8d1faa0b29c6b2a236a6890817cd5c0d3..82ad9b67123be9978f69d8cd89d904e698067613 100644 (file)
@@ -150,7 +150,11 @@ void gvdevice_initialize(GVJ_t * job)
 #ifdef HAVE_SETMODE
 #ifdef O_BINARY
         if (job->flags & GVDEVICE_BINARY_FORMAT)
-            setmode(fileno(job->output_file), O_BINARY);
+#ifdef WIN32
+               _setmode(fileno(job->output_file), O_BINARY);
+#else
+               setmode(fileno(job->output_file), O_BINARY);
+#endif                 
 #endif
 #endif
     }