X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4d0c0756e1097b4874cfe4d13afe6090987702ef..520e470fdd0daef09c77938db642e4583933c90d:/src/common/odbc.cpp diff --git a/src/common/odbc.cpp b/src/common/odbc.cpp index de925cc2ea..84b145c36f 100644 --- a/src/common/odbc.cpp +++ b/src/common/odbc.cpp @@ -23,7 +23,7 @@ #include "wx/defs.h" -#if USE_ODBC +#if wxUSE_ODBC #ifndef WX_PRECOMP #include "wx/utils.h" @@ -614,7 +614,7 @@ bool wxRecordSet::GetResultSet(void) field1->SetType(type); field1->SetSize(len); - SQLBindCol(hStmt, i+1, SQL_C_BINARY, field1->GetData(), field1->GetSize(), &trash); + SQLBindCol(hStmt, i+1, SQL_C_BINARY, (unsigned char*)field1->GetData(), field1->GetSize(), &trash); } switch (type) { @@ -1827,4 +1827,4 @@ bool wxQueryField::IsDirty(void) { return dirty; } -#endif // USE_ODBC +#endif // wxUSE_ODBC