diff --git a/api/stats/rtc_stats_report.h b/api/stats/rtc_stats_report.h index 6b013bff64..dc15937690 100644 --- a/api/stats/rtc_stats_report.h +++ b/api/stats/rtc_stats_report.h @@ -33,7 +33,7 @@ class RTC_EXPORT RTCStatsReport : public rtc::RefCountInterface { public: typedef std::map> StatsMap; - class ConstIterator { + class RTC_EXPORT ConstIterator { public: ConstIterator(ConstIterator&& other); ~ConstIterator(); diff --git a/api/video_codecs/video_encoder.h b/api/video_codecs/video_encoder.h index fbbd4ed949..a112f26d90 100644 --- a/api/video_codecs/video_encoder.h +++ b/api/video_codecs/video_encoder.h @@ -144,7 +144,7 @@ class RTC_EXPORT VideoEncoder { }; // Struct containing metadata about the encoder implementing this interface. - struct EncoderInfo { + struct RTC_EXPORT EncoderInfo { static constexpr uint8_t kMaxFramerateFraction = std::numeric_limits::max(); diff --git a/modules/desktop_capture/desktop_region.h b/modules/desktop_capture/desktop_region.h index cc0b78dae5..1aa95d097b 100644 --- a/modules/desktop_capture/desktop_region.h +++ b/modules/desktop_capture/desktop_region.h @@ -67,7 +67,7 @@ class RTC_EXPORT DesktopRegion { public: // Iterator that can be used to iterate over rectangles of a DesktopRegion. // The region must not be mutated while the iterator is used. - class Iterator { + class RTC_EXPORT Iterator { public: explicit Iterator(const DesktopRegion& target); ~Iterator(); diff --git a/modules/desktop_capture/win/desktop.h b/modules/desktop_capture/win/desktop.h index 46cedae18c..4d754190b5 100644 --- a/modules/desktop_capture/win/desktop.h +++ b/modules/desktop_capture/win/desktop.h @@ -16,10 +16,11 @@ #include #include "rtc_base/constructor_magic.h" +#include "rtc_base/system/rtc_export.h" namespace webrtc { -class Desktop { +class RTC_EXPORT Desktop { public: ~Desktop(); diff --git a/modules/desktop_capture/win/scoped_thread_desktop.h b/modules/desktop_capture/win/scoped_thread_desktop.h index deabefa5f4..2eee674cfb 100644 --- a/modules/desktop_capture/win/scoped_thread_desktop.h +++ b/modules/desktop_capture/win/scoped_thread_desktop.h @@ -16,12 +16,13 @@ #include #include "rtc_base/constructor_magic.h" +#include "rtc_base/system/rtc_export.h" namespace webrtc { class Desktop; -class ScopedThreadDesktop { +class RTC_EXPORT ScopedThreadDesktop { public: ScopedThreadDesktop(); ~ScopedThreadDesktop(); diff --git a/modules/desktop_capture/win/screen_capturer_win_directx.h b/modules/desktop_capture/win/screen_capturer_win_directx.h index ba417e778a..feeddff8fc 100644 --- a/modules/desktop_capture/win/screen_capturer_win_directx.h +++ b/modules/desktop_capture/win/screen_capturer_win_directx.h @@ -23,11 +23,12 @@ #include "modules/desktop_capture/screen_capture_frame_queue.h" #include "modules/desktop_capture/win/dxgi_duplicator_controller.h" #include "modules/desktop_capture/win/dxgi_frame.h" +#include "rtc_base/system/rtc_export.h" namespace webrtc { // ScreenCapturerWinDirectx captures 32bit RGBA using DirectX. -class ScreenCapturerWinDirectx : public DesktopCapturer { +class RTC_EXPORT ScreenCapturerWinDirectx : public DesktopCapturer { public: using D3dInfo = DxgiDuplicatorController::D3dInfo;