#ifndef WX_PRECOMP
#include "wx/log.h"
+ #include "wx/intl.h"
+ #include "wx/event.h"
+#endif
+
+#include "wx/msw/private.h" // must be before #include "dynlib.h"
+
+#if !wxUSE_DYNLIB_CLASS
+ #error You need wxUSE_DYNLIB_CLASS to be 1 to compile dialup.cpp.
#endif
#include "wx/dynlib.h"
#include "wx/dialup.h"
+// Doesn't yet compile under BC++, mingw, Watcom C++: no wininet.h
+#if !defined(__BORLANDC__) && !defined(__GNUWIN32_OLD__) && !defined(__GNUWIN32__) && !defined(__WATCOMC__)
+
#include <ras.h>
#include <raserror.h>
#include <wininet.h>
-#include "wx/msw/private.h"
-
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
{
// create a hidden window to receive notification about connections
// status change
- extern wxChar wxPanelClassName[];
+ extern const wxChar *wxPanelClassName;
ms_hwndRas = ::CreateWindow(wxPanelClassName, NULL,
0, 0, 0, 0,
0, NULL,
rasconnstate, dwError);
}
+#endif
+ // __BORLANDC__
#endif // wxUSE_DIALUP_MANAGER