From: Gilles Depeyrot Date: Mon, 26 Nov 2001 06:47:54 +0000 (+0000) Subject: Added compile-time check to be sure that wxUSE_ is set to 1 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9832ce0bcc99b714e63c2d6b18c4b0059425a1f7 Added compile-time check to be sure that wxUSE_ is set to 1 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/dialup/nettest.cpp b/samples/dialup/nettest.cpp index c5e727bf5e..7e31dad045 100644 --- a/samples/dialup/nettest.cpp +++ b/samples/dialup/nettest.cpp @@ -35,6 +35,10 @@ #include "wx/wx.h" #endif +#if !wxUSE_DIALUP_MANAGER +#error You must set wxUSE_DIALUP_MANAGER to 1 in setup.h! +#endif + #include "wx/dialup.h" // ---------------------------------------------------------------------------- diff --git a/samples/joytest/joytest.cpp b/samples/joytest/joytest.cpp index 5fe4889958..a073793928 100644 --- a/samples/joytest/joytest.cpp +++ b/samples/joytest/joytest.cpp @@ -20,8 +20,12 @@ #include "wx/wx.h" #endif -#include -#include +#if !wxUSE_JOYSTICK +#error You must set wxUSE_JOYSTICK to 1 in setup.h! +#endif + +#include "wx/wave.h" +#include "wx/joystick.h" #include "joytest.h"