rs92: cygwin option

pull/13/head
Zilog80 2015-12-23 15:25:12 +01:00
rodzic 584eab9343
commit 768926653e
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -24,7 +24,7 @@
#include <string.h>
#include <math.h>
#ifdef WIN
#ifdef CYGWIN
#include <fcntl.h> // cygwin: _setmode()
#include <io.h>
#endif
@ -911,7 +911,7 @@ int main(int argc, char *argv[]) {
byte, i;
int bit, len;
#ifdef WIN
#ifdef CYGWIN
_setmode(_fileno(stdin), _O_BINARY);
setbuf(stdout, NULL);
#endif

Wyświetl plik

@ -28,7 +28,7 @@
#include <string.h>
#include <math.h>
#ifdef WIN
#ifdef CYGWIN
#include <fcntl.h> // cygwin: _setmode()
#include <io.h>
#endif
@ -930,7 +930,7 @@ int main(int argc, char *argv[]) {
int bit, len;
char *pbuf = NULL;
#ifdef WIN
#ifdef CYGWIN
_setmode(_fileno(stdin), _O_BINARY);
setbuf(stdout, NULL);
#endif