]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
util.h: minor improvement
authorPrzemyslaw Skibinski <inikep@gmail.com>
Fri, 16 Dec 2016 16:12:23 +0000 (17:12 +0100)
committerPrzemyslaw Skibinski <inikep@gmail.com>
Fri, 16 Dec 2016 16:12:23 +0000 (17:12 +0100)
programs/util.h
programs/zstdcli.c

index 8c171c3b196e83b5b73e2d5892c6f45692f28cb5..9dbd7fb1fc9a1f988134fbf53e29d9afcb29f327 100644 (file)
@@ -300,7 +300,7 @@ UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_
     return nbFiles;
 }
 
-#elif (defined(__linux__) && (PLATFORM_POSIX_VERSION >= 1)) || (PLATFORM_POSIX_VERSION >= 200112L)  /* opendir, readdir require POSIX.1-2001 */
+#elif defined(__linux__) || (PLATFORM_POSIX_VERSION >= 200112L)  /* opendir, readdir require POSIX.1-2001 */
 #  define UTIL_HAS_CREATEFILELIST
 #  include <dirent.h>       /* opendir, readdir */
 
index 197dd3ff91a342a74283d31c61970703d4a301c3..68ae3c20184e79713b0c5d8c4eb8ad0c25cc9915 100644 (file)
@@ -44,7 +44,7 @@
 #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__)
 #  include <io.h>       /* _isatty */
 #  define IS_CONSOLE(stdStream) _isatty(_fileno(stdStream))
-#elif (defined(__linux__) && (PLATFORM_POSIX_VERSION >= 1)) || PLATFORM_POSIX_VERSION >= 200112L  /* isatty requires POSIX.1-2001 */
+#elif (defined(__linux__) && (PLATFORM_POSIX_VERSION >= 1)) || (PLATFORM_POSIX_VERSION >= 200112L)  /* isatty requires POSIX.1-2001 */
 #  include <unistd.h>   /* isatty */
 #  define IS_CONSOLE(stdStream) isatty(fileno(stdStream))
 #else