Mark EnableMedia with RTC_EXPORT

Bug: webrtc:15574
Change-Id: I324f9694bfe41fa9831a24eb4e3c4373b43a9cbb
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/325523
Auto-Submit: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41055}
diff --git a/api/BUILD.gn b/api/BUILD.gn
index a3b32bc..692c4f4 100644
--- a/api/BUILD.gn
+++ b/api/BUILD.gn
@@ -46,6 +46,7 @@
     "../call",
     "../media:rtc_audio_video",
     "../pc:media_factory",
+    "../rtc_base/system:rtc_export",
   ]
 }
 
diff --git a/api/enable_media.h b/api/enable_media.h
index 8e0b66b..8518396 100644
--- a/api/enable_media.h
+++ b/api/enable_media.h
@@ -12,6 +12,7 @@
 #define API_ENABLE_MEDIA_H_
 
 #include "api/peer_connection_interface.h"
+#include "rtc_base/system/rtc_export.h"
 
 namespace webrtc {
 
@@ -19,7 +20,7 @@
 // This function is located in its own build target to allow webrtc users that
 // do not need any media to avoid linking media specific code and thus to reduce
 // binary size.
-void EnableMedia(PeerConnectionFactoryDependencies& deps);
+RTC_EXPORT void EnableMedia(PeerConnectionFactoryDependencies& deps);
 
 }  // namespace webrtc