From: Ryan Norton Date: Sun, 20 Feb 2005 09:33:04 +0000 (+0000) Subject: if wxUSE_XXX fixes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/16c81607bfe8b01224ab42a842be208acf74abdd if wxUSE_XXX fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/cocoa/bmpbuttn.mm b/src/cocoa/bmpbuttn.mm index 63252c28f4..5081c6a5ac 100644 --- a/src/cocoa/bmpbuttn.mm +++ b/src/cocoa/bmpbuttn.mm @@ -10,6 +10,9 @@ ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" + +#if wxUSE_BMPBUTTON + #ifndef WX_PRECOMP #include "wx/defs.h" #include "wx/bmpbuttn.h" @@ -66,3 +69,4 @@ void wxBitmapButton::Cocoa_wxNSButtonAction(void) Command(event); } +#endif diff --git a/src/cocoa/checkbox.mm b/src/cocoa/checkbox.mm index 07f7332b90..d5f21852a6 100644 --- a/src/cocoa/checkbox.mm +++ b/src/cocoa/checkbox.mm @@ -10,6 +10,9 @@ ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" + +#if wxUSE_CHECKBOX + #ifndef WX_PRECOMP #include "wx/log.h" #include "wx/app.h" @@ -133,3 +136,4 @@ void wxCheckBox::Cocoa_wxNSButtonAction(void) Command(event); } +#endif \ No newline at end of file diff --git a/src/cocoa/checklst.mm b/src/cocoa/checklst.mm index 2cfcc8b3e5..dbc40bc078 100644 --- a/src/cocoa/checklst.mm +++ b/src/cocoa/checklst.mm @@ -10,6 +10,9 @@ ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" + +#if wxUSE_CHECKLISTBOX + #ifndef WX_PRECOMP #include "wx/log.h" #include "wx/app.h" @@ -65,3 +68,4 @@ void wxCheckListBox::Check(size_t item, bool check) { } +#endif \ No newline at end of file diff --git a/src/cocoa/choice.mm b/src/cocoa/choice.mm index 11e94454e6..e5c2431dc8 100644 --- a/src/cocoa/choice.mm +++ b/src/cocoa/choice.mm @@ -10,6 +10,9 @@ ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" + +#if wxUSE_CHOICE + #ifndef WX_PRECOMP #include "wx/log.h" #include "wx/app.h" @@ -240,3 +243,4 @@ void wxChoice::SetSelection(int n) [(NSPopUpButton*)m_cocoaNSView selectItemAtIndex:n]; } +#endif diff --git a/src/cocoa/listbox.mm b/src/cocoa/listbox.mm index b488e5aa4d..59e96c6d62 100644 --- a/src/cocoa/listbox.mm +++ b/src/cocoa/listbox.mm @@ -10,6 +10,9 @@ ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" + +#if wxUSE_LISTBOX + #ifndef WX_PRECOMP #include "wx/log.h" #include "wx/app.h" @@ -280,3 +283,4 @@ wxClientData* wxListBox::DoGetItemClientObject(int n) const return (wxClientData*) m_itemClientData[n]; } +#endif \ No newline at end of file diff --git a/src/cocoa/mdi.mm b/src/cocoa/mdi.mm index da1375de1e..015445cccd 100644 --- a/src/cocoa/mdi.mm +++ b/src/cocoa/mdi.mm @@ -10,6 +10,9 @@ ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" + +#if wxUSE_MDI + #ifndef WX_PRECOMP #include "wx/log.h" #include "wx/mdi.h" @@ -333,3 +336,4 @@ bool wxMDIClientWindow::CreateClient( wxMDIParentFrame *parent, long style) return false; } +#endif diff --git a/src/cocoa/radiobox.mm b/src/cocoa/radiobox.mm index 6352832477..89f9b0bbe5 100644 --- a/src/cocoa/radiobox.mm +++ b/src/cocoa/radiobox.mm @@ -10,6 +10,9 @@ ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" + +#if wxUSE_RADIOBOX + #ifndef WX_PRECOMP #include "wx/app.h" #include "wx/radiobox.h" @@ -112,3 +115,5 @@ wxSize wxRadioBox::DoGetBestSize() const return wxSize(50,50); } +#endif + diff --git a/src/cocoa/radiobut.mm b/src/cocoa/radiobut.mm index 4962d81f45..2384a73787 100644 --- a/src/cocoa/radiobut.mm +++ b/src/cocoa/radiobut.mm @@ -10,6 +10,9 @@ ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" + +#if wxUSE_RADIOBTN + #ifndef WX_PRECOMP #include "wx/log.h" #include "wx/app.h" @@ -158,3 +161,4 @@ void wxRadioButton::Cocoa_wxNSButtonAction(void) Command(event); } +#endif