From 5ce60ad0d54c804f26eee9ff494bc04a84a23957 Mon Sep 17 00:00:00 2001 From: jjgarcia Date: Sat, 29 Sep 2001 11:03:19 +0000 Subject: [PATCH] Open files in binary mode. --- src/h/machines.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/h/machines.h b/src/h/machines.h index 30218acd5..51f6563d1 100755 --- a/src/h/machines.h +++ b/src/h/machines.h @@ -35,7 +35,7 @@ # define FILE_CNT(fp) (fp)->_cnt #endif -#ifdef MSDOS +#if defined(MSDOS) || defined(cygwin) # define IS_DIR_SEPARATOR(x) ((x=='/')||(x=='\\')) # define DIR_SEPARATOR '\\' # define PATH_SEPARATOR ';' @@ -44,6 +44,7 @@ # define OPEN_RW "w+b" # define OPEN_A "ab" # define OPEN_RA "a+b" +# define CRLF #else # define IS_DIR_SEPARATOR(x) (x=='/') # define DIR_SEPARATOR '/' @@ -55,9 +56,6 @@ # define OPEN_RA "a+" #endif MSDOS -#ifdef MSDOS -# define CRLF -#endif MSDOS /***********************************************************************