diff --git a/tests/graphics/clippingbox.cpp b/tests/graphics/clippingbox.cpp index e0cee432a3..864f52c153 100644 --- a/tests/graphics/clippingbox.cpp +++ b/tests/graphics/clippingbox.cpp @@ -189,6 +189,9 @@ CPPUNIT_TEST_SUITE_REGISTRATION( ClippingBoxTestCaseGCDC ); CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ClippingBoxTestCaseGCDC, "ClippingBoxTestCaseGCDC" ); #endif // !__WXMSW__ +#ifdef __WXMSW__ +// GDI+ and Direct2D are available only under MSW. + #if wxUSE_GRAPHICS_GDIPLUS class ClippingBoxTestCaseGDIPlus : public ClippingBoxTestCaseGCDC { @@ -271,6 +274,8 @@ CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ClippingBoxTestCaseDirect2D, "ClippingBox #endif // wxUSE_GRAPHICS_DIRECT2D +#endif // __WXMSW__ + #if wxUSE_CAIRO class ClippingBoxTestCaseCairo : public ClippingBoxTestCaseGCDC {