From b7d6e8f6bc3f1af4d94e15ae53f16351bc398a33 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Mon, 9 Nov 2015 18:20:39 +0100 Subject: [PATCH] fixed Visual warning --- programs/fileio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/programs/fileio.c b/programs/fileio.c index a7a394e0..4ef808fa 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -93,6 +93,10 @@ # define IS_CONSOLE(stdStream) isatty(fileno(stdStream)) #endif +#if !defined(S_ISREG) +# define S_ISREG(x) (((x) & S_IFMT) == S_IFREG) +#endif + /* ************************************* * Constants