From cc2b5e5815aa596dbbdd288d0d178019f2d521aa Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 2 Jun 2000 15:57:44 +0000 Subject: Remove NT-specific file open defines by defining our own open macros for "rb" and "wb". --- src/backend/utils/adt/arrayfuncs.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/backend/utils/adt/arrayfuncs.c') diff --git a/src/backend/utils/adt/arrayfuncs.c b/src/backend/utils/adt/arrayfuncs.c index 6e6d32e08da..2736f92555c 100644 --- a/src/backend/utils/adt/arrayfuncs.c +++ b/src/backend/utils/adt/arrayfuncs.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.54 2000/05/30 04:24:50 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.55 2000/06/02 15:57:28 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -549,11 +549,7 @@ _ReadLOArray(char *str, { FILE *afd; -#ifndef __CYGWIN32__ - if ((afd = AllocateFile(accessfile, "r")) == NULL) -#else - if ((afd = AllocateFile(accessfile, "r")) == NULL) -#endif + if ((afd = AllocateFile(accessfile, PG_BINARY_R)) == NULL) elog(ERROR, "unable to open access pattern file"); *chunkFlag = true; retStr = _ChunkArray(*fd, afd, ndim, dim, baseSize, nbytes, -- cgit v1.2.3