Fixes to build WebRTC for Fuchsia
1. Added WEBRTC_FUCHSIA define. 2. Added PlatformThreadId typedef for Fuchsia. 3. Updated ifdefs for _strnicmp()/strncasecmd(), so _strnicmp() is used on all platforms 3. Updated ifdefs in clock.cc to avoid invalid assumption that POSIX = LINUX || MAC . Bug: chromium:750940 Change-Id: Id7aa98e017f467bcebb78a0b298ba91655502072 Reviewed-on: https://webrtc-review.googlesource.com/31641 Commit-Queue: Sergey Ulanov <sergeyu@chromium.org> Reviewed-by: Tommi <tommi@webrtc.org> Reviewed-by: Stefan Holmer <stefan@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21233}
This commit is contained in:
committed by
Commit Bot
parent
3fe1b15413
commit
6acefdb70a
@ -14,6 +14,7 @@
|
||||
#include "modules/rtp_rtcp/source/byte_io.h"
|
||||
#include "modules/rtp_rtcp/source/rtp_header_extensions.h"
|
||||
#include "rtc_base/logging.h"
|
||||
#include "rtc_base/stringutils.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
@ -37,17 +38,10 @@ enum {
|
||||
* Misc utility routines
|
||||
*/
|
||||
|
||||
#if defined(_WIN32)
|
||||
bool StringCompare(const char* str1, const char* str2,
|
||||
const uint32_t length) {
|
||||
return _strnicmp(str1, str2, length) == 0;
|
||||
}
|
||||
#elif defined(WEBRTC_LINUX) || defined(WEBRTC_MAC)
|
||||
bool StringCompare(const char* str1, const char* str2,
|
||||
const uint32_t length) {
|
||||
return strncasecmp(str1, str2, length) == 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
size_t Word32Align(size_t size) {
|
||||
uint32_t remainder = size % 4;
|
||||
|
||||
Reference in New Issue
Block a user