]> git.saurik.com Git - wxWidgets.git/commitdiff
check that we don't try to compile in GUI mode
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 5 Jul 2001 10:52:10 +0000 (10:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 5 Jul 2001 10:52:10 +0000 (10:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/console/console.cpp

index 59760cdb2bbaeaf58b74136139cd46ac84355565..5e8f8eab254e553cb54b8a8e7f77f1322c319da0 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
+#include <wx/defs.h>
+
+#if wxUSE_GUI
+    #error "This sample can't be compiled in GUI mode."
+#endif // wxUSE_GUI
+
 #include <stdio.h>
 
 #include <wx/string.h>