Add detection for ODBC WCHAR fields
[asterisk/asterisk.git] / cdr / cdr_adaptive_odbc.c
index ecbce5b..70e1aea 100644 (file)
@@ -449,9 +449,11 @@ static int odbc_log(struct ast_cdr *cdr)
                                case SQL_CHAR:
                                case SQL_VARCHAR:
                                case SQL_LONGVARCHAR:
+#ifdef HAVE_ODBC_WCHAR
                                case SQL_WCHAR:
                                case SQL_WVARCHAR:
                                case SQL_WLONGVARCHAR:
+#endif
                                case SQL_BINARY:
                                case SQL_VARBINARY:
                                case SQL_LONGVARBINARY: