Commit c709f564 authored by Bruce Momjian's avatar Bruce Momjian

More odbc include cleanups

parent e1eee4cf
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <string.h> #include <string.h>
#include "psqlodbc.h" #include "misc.h"
#include "gpps.h" #include "gpps.h"
#ifndef TRUE #ifndef TRUE
......
...@@ -76,6 +76,17 @@ ...@@ -76,6 +76,17 @@
#define DIRSEPARATOR "\\" #define DIRSEPARATOR "\\"
#endif #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
void remove_newlines(char *string); void remove_newlines(char *string);
char *strncpy_null(char *dst, const char *src, int len); char *strncpy_null(char *dst, const char *src, int len);
char *trim(char *string); char *trim(char *string);
......
...@@ -49,16 +49,6 @@ typedef UInt4 Oid; ...@@ -49,16 +49,6 @@ typedef UInt4 Oid;
#define DRIVER_FILE_NAME "libpsqlodbc.so" #define DRIVER_FILE_NAME "libpsqlodbc.so"
#endif #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 */ /* Limits */
#ifdef WIN32 #ifdef WIN32
#define BLCKSZ 4096 #define BLCKSZ 4096
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment