Add missing RTC_EXPORT for the component build.
Bug: webrtc:9419
Change-Id: I3225259fb4cc55e9820f590928795f4587f1e3cb
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/153884
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29479}
diff --git a/rtc_base/helpers.h b/rtc_base/helpers.h
index 29c4ab0..2fd2fc5 100644
--- a/rtc_base/helpers.h
+++ b/rtc_base/helpers.h
@@ -16,6 +16,8 @@
#include <string>
+#include "rtc_base/system/rtc_export.h"
+
namespace rtc {
// For testing, we can return predictable data.
@@ -27,21 +29,21 @@
// Generates a (cryptographically) random string of the given length.
// We generate base64 values so that they will be printable.
-std::string CreateRandomString(size_t length);
+RTC_EXPORT std::string CreateRandomString(size_t length);
// Generates a (cryptographically) random string of the given length.
// We generate base64 values so that they will be printable.
// Return false if the random number generator failed.
-bool CreateRandomString(size_t length, std::string* str);
+RTC_EXPORT bool CreateRandomString(size_t length, std::string* str);
// Generates a (cryptographically) random string of the given length,
// with characters from the given table. Return false if the random
// number generator failed.
// For ease of implementation, the function requires that the table
// size evenly divide 256; otherwise, it returns false.
-bool CreateRandomString(size_t length,
- const std::string& table,
- std::string* str);
+RTC_EXPORT bool CreateRandomString(size_t length,
+ const std::string& table,
+ std::string* str);
// Generates (cryptographically) random data of the given length.
// Return false if the random number generator failed.
@@ -54,7 +56,7 @@
uint32_t CreateRandomId();
// Generates a 64 bit random id.
-uint64_t CreateRandomId64();
+RTC_EXPORT uint64_t CreateRandomId64();
// Generates a random id > 0.
uint32_t CreateRandomNonZeroId();