From 3fe3acb844995e44ac0eba9d06dc70061e769145 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 9 Jun 2000 16:03:09 +0000 Subject: 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 --- src/interfaces/odbc/dlg_specific.c | 2 ++ src/interfaces/odbc/misc.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/interfaces') 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 #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 -- cgit v1.2.1