diff --git a/samples/drawing/drawing.cpp b/samples/drawing/drawing.cpp index 76ca96d4d0..3c21059947 100644 --- a/samples/drawing/drawing.cpp +++ b/samples/drawing/drawing.cpp @@ -39,7 +39,8 @@ #if wxTEST_GRAPHICS #include "wx/graphics.h" #if wxUSE_GRAPHICS_CONTEXT == 0 -#error wxUSE_GRAPHICS_CONTEXT must be defined to 1 for testing +#undef wxTEST_GRAPHICS +#define wxTEST_GRAPHICS 0 #endif #else #undef wxUSE_GRAPHICS_CONTEXT