mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 15:15:28 +00:00
move lowercased function to RTC_ENABLE_MEDIA
This commit is contained in:
@ -279,10 +279,13 @@ int copyAndReturn(std::vector<T> b, T *buffer, int size) {
|
||||
return int(b.size());
|
||||
}
|
||||
|
||||
#if RTC_ENABLE_MEDIA
|
||||
// function is used in RTC_ENABLE_MEDIA only
|
||||
string lowercased(string str) {
|
||||
std::transform(str.begin(), str.end(), str.begin(), [](unsigned char c) { return std::tolower(c); });
|
||||
return str;
|
||||
}
|
||||
#endif // RTC_ENABLE_MEDIA
|
||||
} // namespace
|
||||
|
||||
void rtcInitLogger(rtcLogLevel level, rtcLogCallbackFunc cb) {
|
||||
|
Reference in New Issue
Block a user