]> wimlib.net Git - wimlib/blobdiff - programs/imagex-win32.c
Merge branch with pipable WIM support
[wimlib] / programs / imagex-win32.c
index 9e93c4cc8510cf9b27931d6358918e6b610facb6..e6e751aa303a979c9472dd40a23655936a728540 100644 (file)
@@ -13,6 +13,8 @@
 #include <string.h>
 #include <assert.h>
 #include <stdio.h>
 #include <string.h>
 #include <assert.h>
 #include <stdio.h>
+#include <fcntl.h>
+#include <io.h>
 
 /* Replacement for glob() in Windows native builds that operates on wide
  * characters. */
 
 /* Replacement for glob() in Windows native builds that operates on wide
  * characters. */
@@ -260,3 +262,7 @@ win32_wbasename(wchar_t *path)
        return p;
 }
 
        return p;
 }
 
+void set_fd_to_binary_mode(int fd)
+{
+       _setmode(fd, _O_BINARY);
+}