Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc709f56

Browse files
committed
More odbc include cleanups
1 parente1eee4c commitc709f56

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
#ifndefTRUE

‎src/interfaces/odbc/misc.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,17 @@
7676
#defineDIRSEPARATOR"\\"
7777
#endif
7878

79+
#ifdefWIN32
80+
#definePG_BINARYO_BINARY
81+
#definePG_BINARY_R"rb"
82+
#definePG_BINARY_W"wb"
83+
#else
84+
#definePG_BINARY0
85+
#definePG_BINARY_R"r"
86+
#definePG_BINARY_W"w"
87+
#endif
88+
89+
7990
voidremove_newlines(char*string);
8091
char*strncpy_null(char*dst,constchar*src,intlen);
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
#defineDRIVER_FILE_NAME"libpsqlodbc.so"
5050
#endif
5151

52-
#ifdefWIN32
53-
#definePG_BINARYO_BINARY
54-
#definePG_BINARY_R"rb"
55-
#definePG_BINARY_W"wb"
56-
#else
57-
#definePG_BINARY0
58-
#definePG_BINARY_R"r"
59-
#definePG_BINARY_W"w"
60-
#endif
61-
6252
/* Limits */
6353
#ifdefWIN32
6454
#defineBLCKSZ 4096

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp