Removed minor warnings under minGW
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@
|
|||||||
# include <fcntl.h> /* _O_BINARY */
|
# include <fcntl.h> /* _O_BINARY */
|
||||||
# include <io.h> /* _setmode, _isatty */
|
# include <io.h> /* _setmode, _isatty */
|
||||||
# ifdef __MINGW32__
|
# ifdef __MINGW32__
|
||||||
int _fileno(FILE *stream); /* MINGW somehow forgets to include this windows declaration into <stdio.h> */
|
/* int _fileno(FILE *stream); // seems no longer useful // MINGW somehow forgets to include this windows declaration into <stdio.h> */
|
||||||
# endif
|
# endif
|
||||||
# define SET_BINARY_MODE(file) _setmode(_fileno(file), _O_BINARY)
|
# define SET_BINARY_MODE(file) _setmode(_fileno(file), _O_BINARY)
|
||||||
# define IS_CONSOLE(stdStream) _isatty(_fileno(stdStream))
|
# define IS_CONSOLE(stdStream) _isatty(_fileno(stdStream))
|
||||||
|
|||||||
+4
-4
@@ -54,7 +54,7 @@
|
|||||||
# include <fcntl.h> // _O_BINARY
|
# include <fcntl.h> // _O_BINARY
|
||||||
# include <io.h> // _setmode, _isatty
|
# include <io.h> // _setmode, _isatty
|
||||||
# ifdef __MINGW32__
|
# ifdef __MINGW32__
|
||||||
int _fileno(FILE *stream); // MINGW somehow forgets to include this windows declaration into <stdio.h>
|
/* int _fileno(FILE *stream); // seems no longer useful // MINGW somehow forgets to include this windows declaration into <stdio.h> */
|
||||||
# endif
|
# endif
|
||||||
# define SET_BINARY_MODE(file) _setmode(_fileno(file), _O_BINARY)
|
# define SET_BINARY_MODE(file) _setmode(_fileno(file), _O_BINARY)
|
||||||
# define IS_CONSOLE(stdStream) _isatty(_fileno(stdStream))
|
# define IS_CONSOLE(stdStream) _isatty(_fileno(stdStream))
|
||||||
@@ -65,9 +65,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//****************************
|
/**************************************
|
||||||
// Constants
|
* Constants
|
||||||
//****************************
|
**************************************/
|
||||||
#define COMPRESSOR_NAME "zstd command line interface"
|
#define COMPRESSOR_NAME "zstd command line interface"
|
||||||
#ifndef ZSTD_VERSION
|
#ifndef ZSTD_VERSION
|
||||||
# define ZSTD_VERSION "v0.0.1"
|
# define ZSTD_VERSION "v0.0.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user