diff options
| author | Eduard Braun <eduard.braun2@gmx.de> | 2018-09-15 12:42:20 +0000 |
|---|---|---|
| committer | Eduard Braun <eduard.braun2@gmx.de> | 2018-09-15 13:06:50 +0000 |
| commit | 05291f649ed454dc8547d5a7d6de4bbb861f7573 (patch) | |
| tree | 8a1e129d3c161c4e20b61a2658511c0b592f3ec0 /src/io/sys.cpp | |
| parent | Support reading and writing pipes (diff) | |
| download | inkscape-05291f649ed454dc8547d5a7d6de4bbb861f7573.tar.gz inkscape-05291f649ed454dc8547d5a7d6de4bbb861f7573.zip | |
Fix eaae266840146a0faa3332f253ba7bd63eecbb21
(cherry picked from commit 11504fc9060729939703c380bcaa71cfc36ea351)
Diffstat (limited to 'src/io/sys.cpp')
| -rw-r--r-- | src/io/sys.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/io/sys.cpp b/src/io/sys.cpp index 21ee94ed3..c56119fb0 100644 --- a/src/io/sys.cpp +++ b/src/io/sys.cpp @@ -16,6 +16,11 @@ #endif #include <fstream> +#ifdef WIN32 +#include <fcntl.h> +#include <io.h> +#endif + #include <glib.h> #include <glib/gstdio.h> #include <glibmm/ustring.h> @@ -74,7 +79,7 @@ FILE *Inkscape::IO::fopen_utf8name( char const *utf8name, char const *mode ) Glib::ustring how( mode ); if ( how.find("w") != Glib::ustring::npos ) { #ifdef WIN32 - setmode(fileno(stdout), O_BINARY) + setmode(fileno(stdout), O_BINARY); #endif return stdout; } else { |
