Cleaning up gate and adding comment to flag

This commit is contained in:
Bimba Shrestha
2019-10-25 14:06:50 -07:00
parent 5b45ff4f1c
commit 0b52d878b2
3 changed files with 19 additions and 33 deletions
+8 -14
View File
@@ -513,23 +513,17 @@ static FILE* FIO_openSrcFile(const char* srcFileName)
return NULL;
}
#ifdef _MSC_VER
if (!UTIL_isRegularFile(srcFileName)) {
DISPLAYLEVEL(1, "zstd: %s is not a regular file -- ignored \n",
srcFileName);
return NULL;
}
#else
if (!UTIL_isRegularFile(srcFileName) && !UTIL_isFIFO(srcFileName)) {
DISPLAYLEVEL(1, "zstd: %s is not a regular file -- ignored \n",
srcFileName);
return NULL;
}
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;
}
{ FILE* const f = fopen(srcFileName, "rb");
if (f == NULL)