zstd cli correctly detects console on Mac OS-X
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
v1.0.1
|
v1.0.1
|
||||||
|
New : contrib/pzstd, parallel version of zstd, by Nick Terrell
|
||||||
Fixed : CLI -d output to stdout by default when input is stdin (#322)
|
Fixed : CLI -d output to stdout by default when input is stdin (#322)
|
||||||
|
Fixed : CLI correctly detects console on Mac OS-X
|
||||||
|
|
||||||
v1.0.0
|
v1.0.0
|
||||||
Change Licensing, all project is now BSD, Copyright Facebook
|
Change Licensing, all project is now BSD, Copyright Facebook
|
||||||
|
|||||||
+1
-1
@@ -52,7 +52,7 @@
|
|||||||
# include <io.h> /* _isatty */
|
# include <io.h> /* _isatty */
|
||||||
# define IS_CONSOLE(stdStream) _isatty(_fileno(stdStream))
|
# define IS_CONSOLE(stdStream) _isatty(_fileno(stdStream))
|
||||||
#else
|
#else
|
||||||
# if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE)
|
# if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE) || (defined(__APPLE__) && defined(__MACH__)) /* https://sourceforge.net/p/predef/wiki/OperatingSystems/ */
|
||||||
# include <unistd.h> /* isatty */
|
# include <unistd.h> /* isatty */
|
||||||
# define IS_CONSOLE(stdStream) isatty(fileno(stdStream))
|
# define IS_CONSOLE(stdStream) isatty(fileno(stdStream))
|
||||||
# else
|
# else
|
||||||
|
|||||||
Reference in New Issue
Block a user