From eee9de7361cc448d80653fe8e04f89b7c24c7e16 Mon Sep 17 00:00:00 2001 From: Mark Mentovai Date: Tue, 2 Dec 2014 18:37:31 -0500 Subject: [PATCH] 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 --- util/mach/mach_message.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/util/mach/mach_message.h b/util/mach/mach_message.h index ffea4465..d5eccbcf 100644 --- a/util/mach/mach_message.h +++ b/util/mach/mach_message.h @@ -18,8 +18,6 @@ #include #include -#include - 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::max(), + kMachMessageWaitIndefinitely = 0xffffffffffffffff, }; //! \brief Computes the deadline for a specified timeout value.