diff options
author | Kelvin Lee <kiyolee@gmail.com> | 2023-09-05 15:10:31 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2023-09-22 20:00:38 +0300 |
commit | d14bba8fc2be02a9fed8c9bcaaf61103451755f8 (patch) | |
tree | 37aca075d453168cb1e7f6791cb43ade5a4d885c /src/xz/private.h | |
parent | MSVC: xzdec: Use _fileno and _setmode. (diff) | |
download | xz-d14bba8fc2be02a9fed8c9bcaaf61103451755f8.tar.xz |
MSVC: xz: Use _fileno() instead of fileno().
Diffstat (limited to 'src/xz/private.h')
-rw-r--r-- | src/xz/private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xz/private.h b/src/xz/private.h index 57606cd6..8542427f 100644 --- a/src/xz/private.h +++ b/src/xz/private.h @@ -36,6 +36,10 @@ # include <windows.h> #endif +#ifdef _MSC_VER +# define fileno _fileno +#endif + #ifndef STDIN_FILENO # define STDIN_FILENO (fileno(stdin)) #endif |