X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae199d6e4d36708ec604c2b743e4b3d93213bebd..72366f68d1036084d1adc5971eeee4885f36fe5c:/src/common/dbgrid.cpp diff --git a/src/common/dbgrid.cpp b/src/common/dbgrid.cpp index e41f15105a..418d445b16 100644 --- a/src/common/dbgrid.cpp +++ b/src/common/dbgrid.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: dbgrid.cpp +// Name: src/common/dbgrid.cpp // Purpose: Displays a wxDbTable in a wxGrid. // Author: Roger Gammans, Paul Gammans // Modified by: @@ -17,20 +17,18 @@ #pragma hdrstop #endif - -#if wxUSE_ODBC -#if wxUSE_GRID +#if wxUSE_ODBC && wxUSE_GRID #ifndef WX_PRECOMP #include "wx/textctrl.h" #include "wx/dc.h" + #include "wx/app.h" #endif // WX_PRECOMP #include "wx/generic/gridctrl.h" #include "wx/dbgrid.h" // DLL options compatibility check: -#include "wx/app.h" WX_CHECK_BUILD_OPTIONS("wxDbGrid") @@ -274,7 +272,7 @@ wxString wxDbGridTableBase::GetTypeName(int WXUNUSED(row), int col) case SQL_C_CHAR: #ifdef SQL_C_WCHAR case SQL_C_WCHAR: -#endif +#endif return wxGRID_VALUE_STRING; case SQL_C_SHORT: case SQL_C_SSHORT: @@ -725,6 +723,4 @@ bool wxDbGridTableBase::Writeback() const WX_DEFINE_EXPORTED_OBJARRAY(keyarray) -#endif // #if wxUSE_GRID -#endif // #if wxUSE_ODBC - +#endif // wxUSE_GRID && wxUSE_ODBC