summaryrefslogtreecommitdiff
path: root/xdelta3
diff options
context:
space:
mode:
authorjosh.macdonald <jmacd@users.noreply.github.com>2008-07-05 13:24:15 +0000
committerjosh.macdonald <jmacd@users.noreply.github.com>2008-07-05 13:24:15 +0000
commit1c583b507081301a0c6738eeaf541790b2393714 (patch)
treeffec7f27df2cdb98f85db8674d03695362ed069c /xdelta3
parentd4f98ead39af5d47905166bfc2a6e1e94540bc23 (diff)
Fix stdin/stdout problem on Windows, issue 34.
Diffstat (limited to 'xdelta3')
-rw-r--r--xdelta3/xdelta3-main.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/xdelta3/xdelta3-main.h b/xdelta3/xdelta3-main.h
index ddc95a2..8a1ccf8 100644
--- a/xdelta3/xdelta3-main.h
+++ b/xdelta3/xdelta3-main.h
@@ -713,10 +713,14 @@ main_atou (const char* arg, usize_t *xo, usize_t low,
713 713
714#elif XD3_WIN32 714#elif XD3_WIN32
715#define XFNO(f) -1 715#define XFNO(f) -1
716#define XSTDOUT_XF(f) \ 716#define XSTDOUT_XF(f) { \
717 { (f)->file = winStartupInfo.hStdOutput; (f)->filename = "(stdout)"; } 717 (f)->file = GetStdHandle(STD_OUTPUT_HANDLE); \
718#define XSTDIN_XF(f) \ 718 (f)->filename = "(stdout)"; \
719 { (f)->file = winStartupInfo.hStdInput; (f)->filename = "(stdin)"; } 719 }
720#define XSTDIN_XF(f) { \
721 (f)->file = GetStdHandle(STD_INPUT_HANDLE); \
722 (f)->filename = "(stdin)"; \
723 }
720#endif 724#endif
721 725
722static void 726static void