Skip to content

Commit c709f56

Browse files
committed
More odbc include cleanups
1 parent e1eee4c commit c709f56

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

src/interfaces/odbc/gpps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
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

src/interfaces/odbc/misc.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,17 @@
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+
7990
void remove_newlines(char *string);
8091
char *strncpy_null(char *dst, const char *src, int len);
8192
char *trim(char *string);

src/interfaces/odbc/psqlodbc.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy