From c9dd40c1f69a7e0239f924edd68155379e58958f Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Thu, 10 Sep 2009 18:17:14 +0000 Subject: Verify support for wide ODBC character types before using them. (closes issue #15870) Reported by: nic_bellamy git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@217638 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_config_odbc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'res') diff --git a/res/res_config_odbc.c b/res/res_config_odbc.c index dff3bdd8e..0b1d5a14a 100644 --- a/res/res_config_odbc.c +++ b/res/res_config_odbc.c @@ -903,9 +903,11 @@ static int require_odbc(const char *database, const char *table, va_list ap) 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: -- cgit v1.2.3