mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 14:06:33 +00:00
MachMessageWithDeadline(): 10.6 SDK fix.
In the pre-C++11 10.6 SDK, std::numeric_limits<>::max() is not marked constexpr and cannot be used to initialize enum elements. R=rsesek@chromium.org Review URL: https://codereview.chromium.org/771183003
This commit is contained in:
parent
dce497446e
commit
eee9de7361
@ -18,8 +18,6 @@
|
||||
#include <mach/mach.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <limits>
|
||||
|
||||
namespace crashpad {
|
||||
|
||||
//! \brief The time before which a MachMessageWithDeadline() call should
|
||||
@ -40,8 +38,7 @@ enum : MachMessageDeadline {
|
||||
|
||||
//! \brief MachMessageWithDeadline() should wait indefinitely for the
|
||||
//! requested operation to complete.
|
||||
kMachMessageWaitIndefinitely =
|
||||
std::numeric_limits<MachMessageDeadline>::max(),
|
||||
kMachMessageWaitIndefinitely = 0xffffffffffffffff,
|
||||
};
|
||||
|
||||
//! \brief Computes the deadline for a specified timeout value.
|
||||
|
Loading…
x
Reference in New Issue
Block a user