X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cff4a45c15d850099265a40d267157cf153e3546..399b60a0ad232265cd74ce8bf6a53a1f2cc57ff2:/src/msw/dialup.cpp?ds=sidebyside diff --git a/src/msw/dialup.cpp b/src/msw/dialup.cpp index f33fcde10a..b812904744 100644 --- a/src/msw/dialup.cpp +++ b/src/msw/dialup.cpp @@ -38,23 +38,31 @@ #include "wx/event.h" #endif -#ifndef wxUSE_DYNLIB_CLASS -#error You need wxUSE_DYNLIB_CLASS to be 1 to compile dialup.cpp. +#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__) +// Doesn't yet compile under VC++ 4, BC++, mingw, Watcom C++: no wininet.h +#if !defined(__BORLANDC__) && !defined(__GNUWIN32_OLD__) && !defined(__GNUWIN32__) && !defined(__WATCOMC__) && ! (defined(__VISUALC__) && (__VISUALC__ < 1020)) #include #include #include -#include "wx/msw/private.h" +// Not in VC++ 5 +#ifndef INTERNET_CONNECTION_LAN +#define INTERNET_CONNECTION_LAN 2 +#endif +#ifndef INTERNET_CONNECTION_PROXY +#define INTERNET_CONNECTION_PROXY 4 +#endif // ---------------------------------------------------------------------------- // constants