X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f4a0c5be34be837210768501c13dbcff81e533c..e16ebee6a9cb46e71b5e15fe14edf61fd790bb14:/src/common/odbc.cpp diff --git a/src/common/odbc.cpp b/src/common/odbc.cpp index f82a986409..103fdda8af 100644 --- a/src/common/odbc.cpp +++ b/src/common/odbc.cpp @@ -23,7 +23,11 @@ #include "wx/defs.h" -#if wxUSE_ODBC +// this code is old and shouldn't be used - use the new ODBC classes in db.cpp +// and dbtable.cpp instead +#define wxUSE_OLD_ODBC 0 + +#if wxUSE_OLD_ODBC #ifdef __VISUALC__ #pragma warning(disable:4706) // assignment within conditional expression @@ -443,7 +447,7 @@ float wxDatabase::GetODBCVersionFloat(bool implementation) if (retcode == SQL_ERROR) return 0.0; else - return atof(buf); + return (float)atof(buf); } /* @@ -1835,4 +1839,4 @@ bool wxQueryField::IsDirty(void) { #pragma warning(default:4706) // assignment within conditional expression #endif // VC++ -#endif // wxUSE_ODBC +#endif // wxUSE_OLD_ODBC