]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Removed minor warnings under minGW
authorYann Collet <yann.collet.73@gmail.com>
Sun, 25 Jan 2015 14:50:24 +0000 (15:50 +0100)
committerYann Collet <yann.collet.73@gmail.com>
Sun, 25 Jan 2015 14:50:24 +0000 (15:50 +0100)
programs/fileio.c
programs/zstdcli.c

index 83216e8bee4f2f02afff0afae3c1bd97c351a496..453269d7bb341231f52c6b5bac52eae2fc1018b2 100644 (file)
@@ -63,7 +63,7 @@
 #  include <fcntl.h>    /* _O_BINARY */
 #  include <io.h>       /* _setmode, _isatty */
 #  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
 #  define SET_BINARY_MODE(file) _setmode(_fileno(file), _O_BINARY)
 #  define IS_CONSOLE(stdStream) _isatty(_fileno(stdStream))
index 9c4784599e617e3a7c65062ff043a6f755cf9c9a..5876f557cdf753bb4bad1ed8c4d524a48ab76cae 100644 (file)
@@ -54,7 +54,7 @@
 #  include <fcntl.h>    // _O_BINARY
 #  include <io.h>       // _setmode, _isatty
 #  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
 #  define SET_BINARY_MODE(file) _setmode(_fileno(file), _O_BINARY)
 #  define IS_CONSOLE(stdStream) _isatty(_fileno(stdStream))
@@ -65,9 +65,9 @@
 #endif
 
 
-//****************************
-// Constants
-//****************************
+/**************************************
+ Constants
+**************************************/
 #define COMPRESSOR_NAME "zstd command line interface"
 #ifndef ZSTD_VERSION
 #  define ZSTD_VERSION "v0.0.1"