search for: get_binary_stdin_

Displaying 2 results from an estimated 2 matches for "get_binary_stdin_".

2005 May 25
0
[PATCH] Fix fuction prototypes/definitions with void argument
...src/libFLAC/file_decoder.c-dist 2005-05-25 16:07:23.000000000 +0200 +++ src/libFLAC/file_decoder.c 2005-05-25 16:07:27.000000000 +0200 @@ -51,7 +51,7 @@ ***********************************************************************/ static void set_defaults_(FLAC__FileDecoder *decoder); -static FILE *get_binary_stdin_(); +static FILE *get_binary_stdin_(void); static FLAC__SeekableStreamDecoderReadStatus read_callback_(const FLAC__SeekableStreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data); static FLAC__SeekableStreamDecoderSeekStatus seek_callback_(const FLAC__SeekableStreamDecoder...
2017 Feb 09
1
[PATCH] Fix compile with cygwin
...de <io.h> /* for _setmode(), chmod() */ #include <fcntl.h> /* for _O_BINARY */ #else diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c index 2e1fdd5..d3b6e03 100644 --- a/src/libFLAC/stream_decoder.c +++ b/src/libFLAC/stream_decoder.c @@ -1253,9 +1253,6 @@ FILE *get_binary_stdin_(void) */ #if defined _MSC_VER || defined __MINGW32__ _setmode(_fileno(stdin), _O_BINARY); -#elif defined __CYGWIN__ - /* almost certainly not needed for any modern Cygwin, but let's be safe... */ - setmode(_fileno(stdin), _O_BINARY); #elif defined __EMX__ setmode(fileno(stdin), O_BINAR...