]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/odbc.cpp
Made wxNO_DEFAULT set the "no" button as the default, according to the docs
[wxWidgets.git] / src / common / odbc.cpp
index 576ee3a4874817a4cf7ed20fb5721292d452005b..224738bda46f9d36e19ad462fefe79e655ad90d0 100644 (file)
@@ -2,12 +2,12 @@
 // Name:        odbc.cpp
 // Purpose:     ODBC implementation
 // Author:      Julian Smart, Olaf Klein (oklein@smallo.ruhr.de),
-//               Patrick Halke (patrick@zaphod.ruhr.de)
-// Modified by:        
+//              Patrick Halke (patrick@zaphod.ruhr.de)
+// Modified by:
 // Created:     04/01/98
 // RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart and Markus Holzem
-// Licence:    wxWindows license
+// Licence:     wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
 #ifdef __GNUG__
@@ -25,7 +25,7 @@
 
 #if wxUSE_ODBC
 
-#ifdef _MSC_VER
+#ifdef __VISUALC__
     #pragma warning(disable:4706)   // assignment within conditional expression
 #endif // VC++
 
@@ -443,7 +443,7 @@ float wxDatabase::GetODBCVersionFloat(bool implementation)
   if (retcode == SQL_ERROR)
     return 0.0;
   else
-    return atof(buf);
+    return (float)atof(buf);
 }
 
 /*
@@ -1831,7 +1831,7 @@ bool wxQueryField::IsDirty(void) {
   return dirty;
 }
 
-#ifdef _MSC_VER
+#ifdef __VISUALC__
     #pragma warning(default:4706)   // assignment within conditional expression
 #endif // VC++