1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-03 15:22:11 +03:00

Make Win32 tests to match existing Cygwin tests, where appropriate.

This commit is contained in:
Bruce Momjian
2003-04-18 01:03:42 +00:00
parent cb7fb3ca95
commit 4d4953fc41
10 changed files with 109 additions and 42 deletions

View File

@@ -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++;
}