X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/232fdc630c42eb165f7659981043e794be03b3b7..3f30bd1a8de0003b8963ee269eef9b361249828a:/tests/controls/bitmaptogglebuttontest.cpp diff --git a/tests/controls/bitmaptogglebuttontest.cpp b/tests/controls/bitmaptogglebuttontest.cpp index a71be54b06..b6992aa7d1 100644 --- a/tests/controls/bitmaptogglebuttontest.cpp +++ b/tests/controls/bitmaptogglebuttontest.cpp @@ -9,10 +9,16 @@ #include "testprec.h" +#if wxUSE_TOGGLEBTN + #ifdef __BORLANDC__ #pragma hdrstop #endif +#include "wx/tglbtn.h" + +#ifdef wxHAS_BITMAPTOGGLEBUTTON + #ifndef WX_PRECOMP #include "wx/app.h" #endif // WX_PRECOMP @@ -20,7 +26,6 @@ #include "testableframe.h" #include "wx/uiaction.h" #include "wx/artprov.h" -#include "wx/tglbtn.h" class BitmapToggleButtonTestCase : public CppUnit::TestCase { @@ -113,3 +118,7 @@ void BitmapToggleButtonTestCase::Value() CPPUNIT_ASSERT_EQUAL( 0, frame->GetEventCount() ); } + +#endif // wxHAS_BITMAPTOGGLEBUTTON + +#endif // wxUSE_TOGGLEBTN