From: Vadim Zeitlin Date: Thu, 5 Jul 2001 10:52:10 +0000 (+0000) Subject: check that we don't try to compile in GUI mode X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b11a23f38ffd9fd747f5e1c52b1ea529aff24439?ds=inline check that we don't try to compile in GUI mode git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/console/console.cpp b/samples/console/console.cpp index 59760cdb2b..5e8f8eab25 100644 --- a/samples/console/console.cpp +++ b/samples/console/console.cpp @@ -17,6 +17,12 @@ // headers // ---------------------------------------------------------------------------- +#include + +#if wxUSE_GUI + #error "This sample can't be compiled in GUI mode." +#endif // wxUSE_GUI + #include #include