1
0
mirror of https://github.com/facebook/zstd.git synced 2025-08-01 09:47:01 +03:00

dynamic memory allocation in UTIL_createFileList

This commit is contained in:
inikep
2016-05-11 14:11:00 +02:00
parent 95459458ed
commit 4dbf7f4a3b
3 changed files with 74 additions and 55 deletions

View File

@ -28,12 +28,6 @@
*/
/*-************************************
* Compiler Options
**************************************/
#define _POSIX_SOURCE 1 /* triggers fileno() within <stdio.h> on unix */
/*-************************************
* Includes
**************************************/
@ -50,6 +44,7 @@
#endif
/*-************************************
* OS-specific Includes
**************************************/
@ -59,6 +54,7 @@
# define SET_BINARY_MODE(file) _setmode(_fileno(file), _O_BINARY)
# define IS_CONSOLE(stdStream) _isatty(_fileno(stdStream))
#else
extern int fileno(FILE *stream); /* triggers fileno() within <stdio.h> on POSIX */
# include <unistd.h> /* isatty */
# define SET_BINARY_MODE(file)
# define IS_CONSOLE(stdStream) isatty(fileno(stdStream))