]> granicus.if.org Git - postgresql/commitdiff
Remove compile errors.
authorHiroshi Inoue <inoue@tpf.co.jp>
Fri, 8 Mar 2002 09:50:39 +0000 (09:50 +0000)
committerHiroshi Inoue <inoue@tpf.co.jp>
Fri, 8 Mar 2002 09:50:39 +0000 (09:50 +0000)
src/interfaces/odbc/multibyte.c
src/interfaces/odbc/pgtypes.c

index 06e24d0871634db274d70befd001b82addd0570e..11d35369ddf26f17baa1cdb2a8393697da4b4b84 100644 (file)
@@ -15,6 +15,9 @@
 #include <ctype.h>
 #include <stdio.h>
 #include <stdlib.h>
+#ifndef        TRUE
+#define        TRUE    1
+#endif
 
 pg_CS CS_Table[] =
 {
index 8cade89b73f9f87d55d51a8a98f0bbbe37e16f76..5b6f85fbc390352247aeab7b86300af6831446a0 100644 (file)
@@ -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 */