File tree Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 2626
2727#include <sys/types.h>
2828#include <string.h>
29- #include "psqlodbc .h"
29+ #include "misc .h"
3030#include "gpps.h"
3131
3232#ifndef TRUE
Original file line number Diff line number Diff line change 7676#define DIRSEPARATOR "\\"
7777#endif
7878
79+ #ifdef WIN32
80+ #define PG_BINARY O_BINARY
81+ #define PG_BINARY_R "rb"
82+ #define PG_BINARY_W "wb"
83+ #else
84+ #define PG_BINARY 0
85+ #define PG_BINARY_R "r"
86+ #define PG_BINARY_W "w"
87+ #endif
88+
89+
7990void remove_newlines (char * string );
8091char * strncpy_null (char * dst , const char * src , int len );
8192char * trim (char * string );
Original file line number Diff line number Diff line change @@ -49,16 +49,6 @@ typedef UInt4 Oid;
4949#define DRIVER_FILE_NAME "libpsqlodbc.so"
5050#endif
5151
52- #ifdef WIN32
53- #define PG_BINARY O_BINARY
54- #define PG_BINARY_R "rb"
55- #define PG_BINARY_W "wb"
56- #else
57- #define PG_BINARY 0
58- #define PG_BINARY_R "r"
59- #define PG_BINARY_W "w"
60- #endif
61-
6252/* Limits */
6353#ifdef WIN32
6454#define BLCKSZ 4096
You can’t perform that action at this time.
0 commit comments