1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-25 01:02:05 +03:00

Fix ODBC for new binary fopen/open params

This commit is contained in:
Bruce Momjian
2000-06-08 16:40:51 +00:00
parent eae8bd70a7
commit f7d979bc58
3 changed files with 191 additions and 6 deletions

View File

@ -49,6 +49,16 @@ typedef UInt4 Oid;
#define DRIVER_FILE_NAME "libpsqlodbc.so"
#endif
#ifdef 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
/* Limits */
#ifdef WIN32
#define BLCKSZ 4096