X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=programs%2Fimagex-win32.c;h=e6e751aa303a979c9472dd40a23655936a728540;hp=9e93c4cc8510cf9b27931d6358918e6b610facb6;hb=61db93f82eca3fe9f7676355c709c58cc425a6ad;hpb=c772c186e1e2b85aceed1f0d4ef115fb01d23425 diff --git a/programs/imagex-win32.c b/programs/imagex-win32.c index 9e93c4cc..e6e751aa 100644 --- a/programs/imagex-win32.c +++ b/programs/imagex-win32.c @@ -13,6 +13,8 @@ #include #include #include +#include +#include /* Replacement for glob() in Windows native builds that operates on wide * characters. */ @@ -260,3 +262,7 @@ win32_wbasename(wchar_t *path) return p; } +void set_fd_to_binary_mode(int fd) +{ + _setmode(fd, _O_BINARY); +}