diff options
author | Andreas Fankhauser hiddenalpha.ch | 2022-08-20 17:52:36 +0200 |
---|---|---|
committer | Andreas Fankhauser hiddenalpha.ch | 2022-08-20 17:52:36 +0200 |
commit | 71775351a71f085c76378f6450cb6279d72bc50b (patch) | |
tree | 74dd0fcaa3e3736feafebf0b0abd89c654adb7fb /src/main/c/zzKludge.c | |
parent | d6f8e794f77074eb76a1efbfc7f69d488f387950 (diff) | |
download | DeflateAndInflate-71775351a71f085c76378f6450cb6279d72bc50b.zip DeflateAndInflate-71775351a71f085c76378f6450cb6279d72bc50b.tar.gz |
Extract windoof kludge to dedicated compilation unit
Diffstat (limited to 'src/main/c/zzKludge.c')
-rw-r--r-- | src/main/c/zzKludge.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/c/zzKludge.c b/src/main/c/zzKludge.c new file mode 100644 index 0000000..3d8ad5c --- /dev/null +++ b/src/main/c/zzKludge.c @@ -0,0 +1,15 @@ +#include "commonbase.h" + +#if WINDOOF + +#include <fcntl.h> +#include <stdio.h> +#include <windows.h> + + +void fixBrokenStdio( void ){ + _setmode(_fileno(stdin), O_BINARY); + _setmode(_fileno(stdout), O_BINARY); +} + +#endif /* end WINDOOF */ |