diff --git a/include/wx/html/winpars.h b/include/wx/html/winpars.h
index f634481287..3347e4e369 100644
--- a/include/wx/html/winpars.h
+++ b/include/wx/html/winpars.h
@@ -259,7 +259,7 @@ private:
// the wxHtmlWinParser object
//-----------------------------------------------------------------------------
-class WXDLLIMPEXP_HTML wxHtmlStyleParams;
+class WXDLLIMPEXP_FWD_HTML wxHtmlStyleParams;
class WXDLLIMPEXP_HTML wxHtmlWinTagHandler : public wxHtmlTagHandler
{
diff --git a/include/wx/osx/core/evtloop.h b/include/wx/osx/core/evtloop.h
index 79e7f2d9ba..cae3c8e78f 100644
--- a/include/wx/osx/core/evtloop.h
+++ b/include/wx/osx/core/evtloop.h
@@ -15,7 +15,7 @@
DECLARE_WXOSX_OPAQUE_CFREF( CFRunLoop );
DECLARE_WXOSX_OPAQUE_CFREF( CFRunLoopObserver );
-class WXDLLIMPEXP_BASE wxCFEventLoopPauseIdleEvents;
+class WXDLLIMPEXP_FWD_BASE wxCFEventLoopPauseIdleEvents;
class WXDLLIMPEXP_BASE wxCFEventLoop : public wxEventLoopBase
{