aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHiroshi Inoue <inoue@tpf.co.jp>2002-03-08 09:50:39 +0000
committerHiroshi Inoue <inoue@tpf.co.jp>2002-03-08 09:50:39 +0000
commitfc701047256666526eda09596aea73521898459d (patch)
tree6f213833b2a9518bb36572416c9deb1048d975e3 /src
parent4b47467a6b0d86162dd8814b8ab923aba982fb34 (diff)
downloadpostgresql-fc701047256666526eda09596aea73521898459d.tar.gz
postgresql-fc701047256666526eda09596aea73521898459d.zip
Remove compile errors.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/odbc/multibyte.c3
-rw-r--r--src/interfaces/odbc/pgtypes.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/interfaces/odbc/multibyte.c b/src/interfaces/odbc/multibyte.c
index 06e24d08716..11d35369ddf 100644
--- a/src/interfaces/odbc/multibyte.c
+++ b/src/interfaces/odbc/multibyte.c
@@ -15,6 +15,9 @@
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
+#ifndef TRUE
+#define TRUE 1
+#endif
pg_CS CS_Table[] =
{
diff --git a/src/interfaces/odbc/pgtypes.c b/src/interfaces/odbc/pgtypes.c
index 8cade89b73f..5b6f85fbc39 100644
--- a/src/interfaces/odbc/pgtypes.c
+++ b/src/interfaces/odbc/pgtypes.c
@@ -1266,7 +1266,9 @@ ctype_length(Int2 ctype)
case SQL_C_BINARY:
case SQL_C_CHAR:
+#ifdef UNICODE_SUPPORT
case SQL_C_WCHAR:
+#endif /* UNICODE_SUPPORT */
return 0;
default: /* should never happen */