From: arif Date: Fri, 22 Oct 2010 19:50:15 +0000 (+0000) Subject: fix to strange unexpected crash.setmode -> _setmode X-Git-Tag: LAST_LIBGRAPH~32^2~1161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a30c2f8bdb9f8bcf3e4c3d5aae8b520a8fade8db;p=graphviz fix to strange unexpected crash.setmode -> _setmode --- diff --git a/lib/gvc/gvdevice.c b/lib/gvc/gvdevice.c index dd5800e8d..82ad9b671 100644 --- a/lib/gvc/gvdevice.c +++ b/lib/gvc/gvdevice.c @@ -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 }