of LR to CR-LF. Note that for this idiom to work, the file must:
#include <config.h> /* for HAVE_SETMODE */
#include <fcntl.h> /* for O_BINARY */
#include <io.h> /* for declaration of setmode() */
The latter two can be wrapped in #ifdef WIN32 if desired.
* AT&T Research, Florham Park NJ *
**********************************************************/
-
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include "render.h"
#ifdef HAVE_LIBZ
#include <zlib.h>
#ifdef WIN32
+#include <fcntl.h>
#include <io.h>
#endif
#endif
#ifdef WIN32
#include <io.h>
+#include <fcntl.h>
#include "compat.h"
#endif
#include "config.h"
#endif
+#ifdef WIN32
+#include <io.h>
+#include <fcntl.h>
+#endif
#include "gvplugin_formatter.h"
#include <IL/il.h>
#include <IL/ilu.h>
#include "config.h"
#endif
+#ifdef WIN32
+#include <fcntl.h>
+#include <io.h>
+#endif
#include <stdlib.h>
#include "gvplugin_formatter.h"
#include "config.h"
#endif
+#ifdef WIN32
+#include <io.h>
+#include <fcntl.h>
+#endif
#include "gvplugin_formatter.h"
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <string.h>
#endif
#include <fcntl.h>
+#ifdef WIN32
+#include <io.h>
+#endif
#if defined(HAVE_FENV_H) && defined(HAVE_FESETENV) && defined(HAVE_FEGETENV) && defined(HAVE_FEENABLEEXCEPT)