X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/19723525ce7b6cc80b5c642fef6bbd46266b6071..0514adaf75ac1df18d133807c79172c2361a1a6b:/include/wx/dataview.h diff --git a/include/wx/dataview.h b/include/wx/dataview.h index 39ab01c92f..86ba1b5021 100644 --- a/include/wx/dataview.h +++ b/include/wx/dataview.h @@ -27,14 +27,6 @@ class WXDLLIMPEXP_FWD_CORE wxDataFormat; -#if defined(__WXGTK20__) - // for testing - // #define wxUSE_GENERICDATAVIEWCTRL 1 -#elif defined(__WXMAC__) -#else - #define wxUSE_GENERICDATAVIEWCTRL 1 -#endif - // ---------------------------------------------------------------------------- // wxDataViewCtrl flags // ---------------------------------------------------------------------------- @@ -856,13 +848,13 @@ typedef void (wxEvtHandler::*wxDataViewEventFunction)(wxDataViewEvent&); #define EVT_DATAVIEW_COLUMN_SORTED(id, fn) wx__DECLARE_DATAVIEWEVT(COLUMN_SORTED, id, fn) #define EVT_DATAVIEW_COLUMN_REORDERED(id, fn) wx__DECLARE_DATAVIEWEVT(COLUMN_REORDERED, id, fn) -#if defined(wxUSE_GENERICDATAVIEWCTRL) - #include "wx/generic/dataview.h" -#elif defined(__WXGTK20__) + +#if defined(__WXGTK20__) && !defined(__WXUNIVERSAL__) #include "wx/gtk/dataview.h" -#elif defined(__WXMAC__) - #include "wx/mac/dataview.h" +#elif defined(__WXMAC__) && !defined(__WXUNIVERSAL__) + #include "wx/osx/dataview.h" #else + #define wxUSE_GENERICDATAVIEWCTRL #include "wx/generic/dataview.h" #endif