From c4edd367678e6a38c42b149856159bf417da7fe1 Mon Sep 17 00:00:00 2001 From: Kelvin Lee Date: Tue, 5 Sep 2023 15:00:07 +0300 Subject: MSVC: xzdec: Use _fileno and _setmode. --- src/xzdec/xzdec.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/xzdec/xzdec.c') diff --git a/src/xzdec/xzdec.c b/src/xzdec/xzdec.c index 95a412f4..e9645c3f 100644 --- a/src/xzdec/xzdec.c +++ b/src/xzdec/xzdec.c @@ -28,6 +28,10 @@ #ifdef TUKLIB_DOSLIKE # include # include +# ifdef _MSC_VER +# define fileno _fileno +# define setmode _setmode +# endif #endif -- cgit v1.2.3