Bug 1686405 - Fix tier-3 build. r=glandium DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D109492
This commit is contained in:
Paul Adenot 2021-04-02 08:56:24 +00:00
parent 18759be2c0
commit 030f28a6fb

View File

@ -43,9 +43,7 @@ Maybe<uint64_t> NowIncludingSuspendMs() {
return Some(clock_gettime_nsec_np(CLOCK_MONOTONIC_RAW) / kNSperMS);
}
#endif // macOS
#if defined(XP_WIN)
#elif defined(XP_WIN)
// Number of hundreds of nanoseconds in a millisecond
static constexpr uint64_t kHNSperMS = 10000;
@ -77,9 +75,8 @@ Maybe<uint64_t> NowIncludingSuspendMs() {
pQueryInterruptTime(&interrupt_time);
return Some(interrupt_time / kHNSperMS);
}
#endif // XP_WIN
#if defined(XP_LINUX) // including Android
#elif defined(XP_LINUX) // including Android
# include <time.h>
// Number of nanoseconds in a millisecond.
@ -111,7 +108,12 @@ Maybe<uint64_t> NowIncludingSuspendMs() {
# endif
}
#endif // XP_LINUX
#else // catch all
Maybe<uint64_t> NowExcludingSuspendMs() { return Nothing(); }
Maybe<uint64_t> NowIncludingSuspendMs() { return Nothing(); }
#endif
}; // anonymous namespace