diff --git a/tests/controls/bitmaptogglebuttontest.cpp b/tests/controls/bitmaptogglebuttontest.cpp index a71be54b06..a14230ab4e 100644 --- a/tests/controls/bitmaptogglebuttontest.cpp +++ b/tests/controls/bitmaptogglebuttontest.cpp @@ -9,6 +9,8 @@ #include "testprec.h" +#if wxUSE_TOGGLEBTN + #ifdef __BORLANDC__ #pragma hdrstop #endif @@ -113,3 +115,5 @@ void BitmapToggleButtonTestCase::Value() CPPUNIT_ASSERT_EQUAL( 0, frame->GetEventCount() ); } + +#endif