#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 <wininet.h>
-#include "wx/msw/private.h"
-
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------