From 799b5ec9651d2642bb2d4d90c74a9c6c1f53a9ed Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 4 Aug 2003 11:15:56 +0000 Subject: [PATCH] check that wxUSE_DISPLAY==1 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/display/display.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/display/display.cpp b/samples/display/display.cpp index 0744d063d4..1e1b8f2038 100644 --- a/samples/display/display.cpp +++ b/samples/display/display.cpp @@ -24,6 +24,10 @@ #pragma hdrstop #endif +#if !wxUSE_DISPLAY + #error "To compile this sample you must build the library with wxUSE_DISPLAY set to 1" +#endif + // for all others, include the necessary headers explicitly #ifndef WX_PRECOMP #include "wx/app.h"