X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8dd8f87530ad8268f6fefe4f4f09cad5503f6b6e..cea4cc794274ae3dcd20133f009d74eaaa7d1c1e:/src/generic/gridctrl.cpp?ds=sidebyside diff --git a/src/generic/gridctrl.cpp b/src/generic/gridctrl.cpp index 9d502277e6..473f509125 100644 --- a/src/generic/gridctrl.cpp +++ b/src/generic/gridctrl.cpp @@ -19,7 +19,7 @@ #pragma hdrstop #endif -#if wxUSE_GRID || wxUSE_NEW_GRID +#if wxUSE_GRID #ifndef WX_PRECOMP #include "wx/textctrl.h" @@ -33,6 +33,8 @@ // wxGridCellDateTimeRenderer // ---------------------------------------------------------------------------- +#if wxUSE_DATETIME + // Enables a grid cell to display a formated date and or time wxGridCellDateTimeRenderer::wxGridCellDateTimeRenderer(wxString outformat, wxString informat) @@ -121,6 +123,8 @@ void wxGridCellDateTimeRenderer::SetParameters(const wxString& params){ m_oformat=params; } +#endif // wxUSE_DATETIME + // ---------------------------------------------------------------------------- // wxGridCellChoiceNumberRenderer // ----------------------------------------------------------------------------