mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[fix] fix compile error on MacOSX
This commit is contained in:
@@ -38,7 +38,7 @@ class CopyOnWriteBuffer {
|
||||
|
||||
private:
|
||||
void EnsureUnique() {
|
||||
if (!buffer_.unique()) {
|
||||
if (buffer_.use_count() != 1) {
|
||||
buffer_ = std::make_shared<std::vector<uint8_t>>(*buffer_);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#include <atomic>
|
||||
|
||||
#include "ref_count.h"
|
||||
#include "api/ref_count.h"
|
||||
|
||||
namespace webrtc {
|
||||
namespace webrtc_impl {
|
||||
|
||||
@@ -18,10 +18,10 @@
|
||||
|
||||
#if defined(__POSIX__)
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#if defined(__APPLE__)
|
||||
#include <mach/mach_time.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
// clang-format off
|
||||
|
||||
@@ -15,13 +15,12 @@
|
||||
#endif
|
||||
|
||||
#include "rtc_base/numerics/safe_conversions.h"
|
||||
#include "rtc_base/system_time.h"
|
||||
#include "rtc_base/time_utils.h"
|
||||
#include "system_time.h"
|
||||
#if defined(_WIN32)
|
||||
#include "rtc_base/win32.h"
|
||||
#endif
|
||||
#if defined(_WIN32)
|
||||
#include <minwinbase.h>
|
||||
|
||||
#include "rtc_base/win32.h"
|
||||
#endif
|
||||
|
||||
namespace rtc {
|
||||
@@ -228,6 +227,7 @@ int64_t TimeUTCMicros() {
|
||||
return (li.QuadPart - kFileTimeToUnixTimeEpochOffset) /
|
||||
kFileTimeToMicroSeconds;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
int64_t TimeUTCMillis() { return TimeUTCMicros() / kNumMicrosecsPerMillisec; }
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <stdint.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "system_time.h"
|
||||
#include "rtc_base/system_time.h"
|
||||
|
||||
namespace rtc {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user