Re: [pgsql-hackers-win32] Re : Win32 binaries test / pg_dump problem

Peter Eisentraut <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.patches,gmane.comp.db.postgresql.devel.win32
Message-ID <[email protected]>
Bruce Momjian wrote:
> + #ifndef WIN32
> + #define R_TEXTFILE    "r"
> + #else
> + #define R_TEXTFILE    "rb"
> + #endif

This appears to be redundant with

#if defined(__CYGWIN__) || defined(WIN32)
#define PG_BINARY       O_BINARY
#define PG_BINARY_R "rb"
#define PG_BINARY_W "wb"
#else
#define PG_BINARY       0
#define PG_BINARY_R "r"
#define PG_BINARY_W "w"
#endif

in c.h.


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.