Changeset 251694 in webkit


Ignore:
Timestamp:
Oct 28, 2019 9:08:10 PM (4 years ago)
Author:
commit-queue@webkit.org
Message:

Remove unnecessary #include <limits.h> header from Timer.cpp
https://bugs.webkit.org/show_bug.cgi?id=203504

Patch by Daniel Bates <dabates@apple.com> on 2019-10-28
Reviewed by Alex Christensen.

Timer.cpp includes both <limits> and <limits.h>. The latter was added to fix a build issue in r30193 that
effected GCC 4.3 when Timer.cpp referenced UINT_MAX. Timer.cpp no longer references this constant and instead
uses the C++ std::numeric_limits equivalent. So, remove the #include <limits.h>.

  • platform/Timer.cpp:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r251691 r251694  
     12019-10-28  Daniel Bates  <dabates@apple.com>
     2
     3        Remove unnecessary #include <limits.h> header from Timer.cpp
     4        https://bugs.webkit.org/show_bug.cgi?id=203504
     5
     6        Reviewed by Alex Christensen.
     7
     8        Timer.cpp includes both <limits> and <limits.h>. The latter was added to fix a build issue in r30193 that
     9        effected GCC 4.3 when Timer.cpp referenced UINT_MAX. Timer.cpp no longer references this constant and instead
     10        uses the C++ std::numeric_limits equivalent. So, remove the #include <limits.h>.
     11
     12        * platform/Timer.cpp:
     13
    1142019-10-28  Yusuke Suzuki  <ysuzuki@apple.com>
    215
  • trunk/Source/WebCore/platform/Timer.cpp

    r250309 r251694  
    3232#include "ThreadGlobalData.h"
    3333#include "ThreadTimers.h"
    34 #include <limits.h>
    3534#include <limits>
    3635#include <math.h>
Note: See TracChangeset for help on using the changeset viewer.