diff options
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 { |
