]> git.saurik.com Git - wxWidgets.git/commitdiff
Added compile-time check to be sure that wxUSE_ is set to 1
authorGilles Depeyrot <gilles_depeyrot@mac.com>
Mon, 26 Nov 2001 06:47:54 +0000 (06:47 +0000)
committerGilles Depeyrot <gilles_depeyrot@mac.com>
Mon, 26 Nov 2001 06:47:54 +0000 (06:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dialup/nettest.cpp
samples/joytest/joytest.cpp

index c5e727bf5e55af86abcb014a43c7bc7441ecbbaf..7e31dad04521e856bdb494616c5fed2c9c6effdd 100644 (file)
     #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"
 
 // ----------------------------------------------------------------------------
index 5fe4889958db32518ad4894c89d9744b7e2af64b..a0737939281543fe2b38ade48e3cb38478b18a33 100644 (file)
 #include "wx/wx.h"
 #endif
 
-#include <wx/wave.h>
-#include <wx/joystick.h>
+#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"