]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dialup.cpp
wxDateTime progress: DST compuation, weekday computation, day-in-year and week
[wxWidgets.git] / src / msw / dialup.cpp
index fad3b9aac2ca7823a73169f26c247a8131377cff..d0163f9dde4389054a54890239e3e8a057574e44 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/log.h"
 
 #ifndef WX_PRECOMP
     #include "wx/log.h"
+    #include "wx/intl.h"
+    #include "wx/event.h"
 #endif
 
 #include "wx/dynlib.h"
 
 #include "wx/dialup.h"
 
 #endif
 
 #include "wx/dynlib.h"
 
 #include "wx/dialup.h"
 
+// Doesn't yet compile under BC++ nor with mingw: no wininet.h
+#if !defined(__BORLANDC__) && !defined(__GNUWIN32_OLD__)
+
 #include <ras.h>
 #include <raserror.h>
 
 #include <ras.h>
 #include <raserror.h>
 
@@ -1082,7 +1087,7 @@ bool wxDialUpManagerMSW::EnableAutoCheckOnlineStatus(size_t nSeconds)
     {
         // create a hidden window to receive notification about connections
         // status change
     {
         // 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,
         ms_hwndRas = ::CreateWindow(wxPanelClassName, NULL,
                                     0, 0, 0, 0,
                                     0, NULL,
@@ -1273,4 +1278,6 @@ static void WINAPI wxRasDialFunc(UINT unMsg,
                 rasconnstate, dwError);
 }
 
                 rasconnstate, dwError);
 }
 
+#endif
+  // __BORLANDC__
 #endif // wxUSE_DIALUP_MANAGER
 #endif // wxUSE_DIALUP_MANAGER