aboutsummaryrefslogtreecommitdiff
path: root/src/tools/entab/entab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/entab/entab.c')
-rw-r--r--src/tools/entab/entab.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/tools/entab/entab.c b/src/tools/entab/entab.c
index 4e7240ea42c..fffeb70d31e 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++;
}