summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0d287cd)
raw | patch | inline | side by side (parent: 0d287cd)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 14 Nov 2011 21:30:31 +0000 (21:30 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 14 Nov 2011 21:30:31 +0000 (21:30 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2207 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_tool.c | patch | blob | history |
diff --git a/src/rrd_tool.c b/src/rrd_tool.c
index 156f96b29f8fe0a6765e13b4887642f87827c40b..ca410fd27345e1f289cd81640935b28a69778493 100644 (file)
--- a/src/rrd_tool.c
+++ b/src/rrd_tool.c
#include "../win32/config.h"
#include <stdlib.h>
#include <sys/stat.h>
+#include <io.h>
+#include <fcntl.h>
#else
#ifdef HAVE_CONFIG_H
#include "../rrd_config.h"
according to localeconv(3) */
setlocale(LC_ALL, "");
+#ifdef WIN32 && !defined(__CYGWIN__)
+ setmode(fileno(stdout), O_BINARY);
+ setmode(fileno(stdin), O_BINARY);
+#endif
+
+
#if defined(HAVE_LIBINTL_H) && defined(BUILD_LIBINTL)
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
textdomain(GETTEXT_PACKAGE);