summaryrefslogtreecommitdiffstats
path: root/programs/lz4cli.c
diff options
context:
space:
mode:
authorPrzemyslaw Skibinski <inikep@gmail.com>2016-12-20 17:05:43 (GMT)
committerPrzemyslaw Skibinski <inikep@gmail.com>2016-12-20 17:05:43 (GMT)
commit2cfef13952c4c7c3d79a9a4748653526d6c85eb0 (patch)
treeb7744b5a3ef7306be0195bd38b4a384630d8052d /programs/lz4cli.c
parentbb69cdf2583a56c6c703f5b91aae0632912f5a8a (diff)
downloadlz4-2cfef13952c4c7c3d79a9a4748653526d6c85eb0.zip
lz4-2cfef13952c4c7c3d79a9a4748653526d6c85eb0.tar.gz
lz4-2cfef13952c4c7c3d79a9a4748653526d6c85eb0.tar.bz2
executables use platform.h
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r--programs/lz4cli.c24
1 files changed, 2 insertions, 22 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c
index 5bd06d9..e552de7 100644
--- a/programs/lz4cli.c
+++ b/programs/lz4cli.c
@@ -39,17 +39,11 @@
/* #define ENABLE_LZ4C_LEGACY_OPTIONS */
-/**************************************
-* Compiler Options
-***************************************/
-/* cf. http://man7.org/linux/man-pages/man7/feature_test_macros.7.html */
-#define _XOPEN_VERSION 600 /* POSIX.2001, for fileno() within <stdio.h> on unix */
-
-
/****************************
* Includes
*****************************/
-#include "util.h" /* Compiler options, UTIL_HAS_CREATEFILELIST */
+#include "platform.h" /* Compiler options, PLATFORM_POSIX_VERSION */
+#include "util.h" /* UTIL_HAS_CREATEFILELIST */
#include <stdio.h> /* fprintf, getchar */
#include <stdlib.h> /* exit, calloc, free */
#include <string.h> /* strcmp, strlen */
@@ -59,20 +53,6 @@
#include "lz4.h" /* LZ4_VERSION_STRING */
-/*-************************************
-* OS-specific Includes
-**************************************/
-#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || (defined(__APPLE__) && defined(__MACH__)) || defined(__DJGPP__) /* https://sourceforge.net/p/predef/wiki/OperatingSystems/ */
-# include <unistd.h> /* isatty */
-# define IS_CONSOLE(stdStream) isatty(fileno(stdStream))
-#elif defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__)
-# include <io.h> /* _isatty */
-# define IS_CONSOLE(stdStream) _isatty(_fileno(stdStream))
-#else
-# define IS_CONSOLE(stdStream) 0
-#endif
-
-
/*****************************
* Constants
******************************/