Looks like Cygwin / MSVC declare it that way, and it still works on
MinGW32 cross.
/* Have sched_yield */
#undef HAVE_SCHED_YIELD
+/* Define to 1 if you have the `setmode' function. */
+#undef HAVE_SETMODE
+
/* Have Solaris __machine_*_barrier and atomic_* operations */
#undef HAVE_SOLARIS_ATOMIC_OPS
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
-/* Define to 1 if you have the `_setmode' function. */
-#undef HAVE__SETMODE
-
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#undef LT_OBJDIR
dnl GTK_DOC_CHECK([1.15],[--flavour no-tmpl])
# Functions and headers
-AC_CHECK_FUNCS(atexit mprotect sysconf getpagesize mmap _setmode isatty)
+AC_CHECK_FUNCS(atexit mprotect sysconf getpagesize mmap setmode isatty)
AC_CHECK_HEADERS(unistd.h sys/mman.h io.h)
# Compiler flags
GString *gs = g_string_new (NULL);
char buf[BUFSIZ];
#ifdef HAVE__SETMODE
- _setmode (fileno (stdin), _O_BINARY);
+ setmode (fileno (stdin), _O_BINARY);
#endif
while (!feof (stdin)) {
size_t ret = fread (buf, 1, sizeof (buf), stdin);
#include <unistd.h> /* for isatty() */
#endif
#ifdef HAVE_IO_H
-#include <io.h> /* for _setmode() under Windows */
+#include <io.h> /* for setmode() under Windows */
#endif
#include <hb.h>