From: Hiroshi Inoue Date: Fri, 8 Mar 2002 09:50:39 +0000 (+0000) Subject: Remove compile errors. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=b9966eec5a708d8123ff7cc65627aed6f7b84a24;p=users%2Fbernd%2Fpostgres.git Remove compile errors. --- diff --git a/src/interfaces/odbc/multibyte.c b/src/interfaces/odbc/multibyte.c index 06e24d0871..11d35369dd 100644 --- a/src/interfaces/odbc/multibyte.c +++ b/src/interfaces/odbc/multibyte.c @@ -15,6 +15,9 @@ #include #include #include +#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 8cade89b73..5b6f85fbc3 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 */