diff options
| author | Bruce Momjian | 2003-04-18 01:03:42 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2003-04-18 01:03:42 +0000 |
| commit | 4d4953fc4187567f73e7e5ccd6678d19a156c240 (patch) | |
| tree | 37b702cafe9076bd1e6fccc058fb908b5b0e32f1 /src/tools | |
| parent | cb7fb3ca958ec8bd5a14e740c067f1d096af3454 (diff) | |
Make Win32 tests to match existing Cygwin tests, where appropriate.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/entab/entab.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/tools/entab/entab.c b/src/tools/entab/entab.c index 4e7240ea42..fffeb70d31 100644 --- a/src/tools/entab/entab.c +++ b/src/tools/entab/entab.c @@ -12,6 +12,8 @@ #include <stdlib.h> #include <string.h> +#include "../include/c.h" + #define NUL '\0' #ifndef TRUE @@ -94,11 +96,7 @@ char **argv; in_file = stdin; else { -#ifndef __CYGWIN__ - if ((in_file = fopen(*argv, "r")) == NULL) -#else - if ((in_file = fopen(*argv, "rb")) == NULL) -#endif + if ((in_file = fopen(*argv, PG_BINARY_R)) == NULL) halt("PERROR: Can not open file %s\n", argv[0]); argv++; } |
