diff options
| author | Bruce Momjian | 2000-06-09 16:03:09 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2000-06-09 16:03:09 +0000 |
| commit | 3fe3acb844995e44ac0eba9d06dc70061e769145 (patch) | |
| tree | 62b57d95736340c1ded1b7f25785d9ee47c4f951 /src/interfaces/odbc | |
| parent | 85add42a570cdb4be2d674e62535eb54b4dcd5cf (diff) | |
I have made the couple of mods required to make the odbc driver with
postgres build and use unixODBC (http://www.unixodbc.org)
This patch was applied against the postgresql-7.0beta1 build
Any problems let me know.
Nick Gorham
Diffstat (limited to 'src/interfaces/odbc')
| -rw-r--r-- | src/interfaces/odbc/dlg_specific.c | 2 | ||||
| -rw-r--r-- | src/interfaces/odbc/misc.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/interfaces/odbc/dlg_specific.c b/src/interfaces/odbc/dlg_specific.c index a683656381..ebe16c1c6e 100644 --- a/src/interfaces/odbc/dlg_specific.c +++ b/src/interfaces/odbc/dlg_specific.c @@ -23,8 +23,10 @@ #ifndef WIN32 #include <string.h> #include "gpps.h" +#ifndef HAVE_SQLGETPRIVATEPROFILESTRING #define SQLGetPrivateProfileString(a,b,c,d,e,f) GetPrivateProfileString(a,b,c,d,e,f) #define SQLWritePrivateProfileString(a,b,c,d) WritePrivateProfileString(a,b,c,d) +#endif #ifndef HAVE_STRICMP #define stricmp(s1,s2) strcasecmp(s1,s2) #define strnicmp(s1,s2,n) strncasecmp(s1,s2,n) diff --git a/src/interfaces/odbc/misc.h b/src/interfaces/odbc/misc.h index ebe56ea9d8..700e951e91 100644 --- a/src/interfaces/odbc/misc.h +++ b/src/interfaces/odbc/misc.h @@ -15,9 +15,10 @@ #endif #ifndef WIN32 -#include "gpps.h" +#ifndef HAVE_SQLGETPRIVATEPROFILESTRING #define SQLGetPrivateProfileString(a,b,c,d,e,f) GetPrivateProfileString(a,b,c,d,e,f) #endif +#endif #include <stdio.h> |
