diff --git a/include/wx/app.h b/include/wx/app.h index b82a6efc2d..3e3e8c7665 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -345,7 +345,8 @@ protected: #if defined(__UNIX__) #include "wx/unix/app.h" #else - typedef wxAppConsoleBase wxAppConsole; + // this has to be a class and not a typedef as we forward declare it + class wxAppConsole : public wxAppConsoleBase { }; #endif // ----------------------------------------------------------------------------