Merge pull request #1850 from bimbashrestha/named_pipes

Gating named pipe support on windows
This commit is contained in:
Yann Collet
2019-10-30 12:18:58 -07:00
committed by GitHub
6 changed files with 19 additions and 5 deletions
+5 -1
View File
@@ -525,7 +525,11 @@ static FILE* FIO_openSrcFile(const char* srcFileName)
return NULL;
}
if (!UTIL_isRegularFile(srcFileName) && !UTIL_isFIFO(srcFileName)) {
if (!UTIL_isRegularFile(srcFileName)
#ifndef _MSC_VER
&& !UTIL_isFIFO(srcFileName)
#endif /* _MSC_VER */
) {
DISPLAYLEVEL(1, "zstd: %s is not a regular file -- ignored \n",
srcFileName);
return NULL;