Skip to content

Commit

Permalink
IWYU: missing include for usage of ptrdiff_t in prtime.cc
Browse files Browse the repository at this point in the history
Fix for build error with libstdc++:
    ../../base/third_party/nspr/prtime.cc: In function ‘PRStatus PR_ParseTimeString(const char*, PRBool, PRTime*)’:
    ../../base/third_party/nspr/prtime.cc:793:37: error: ‘ptrdiff_t’ was not declared in this scope; did you mean ‘std::ptrdiff_t’?
      793 |                                     ptrdiff_t ndigits = end - rest;
          |                                     ^~~~~~~~~
          |                                     std::ptrdiff_t

Bug: 957519
Change-Id: I3a6fc2d6b35763d03a3d93f4322a3b2522f5ccc5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3729259
Reviewed-by: Gabriel Charette <gab@chromium.org>
Commit-Queue: José Dapena Paz <jdapena@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1018692}
  • Loading branch information
jdapena authored and Chromium LUCI CQ committed Jun 28, 2022
1 parent 07b95e0 commit 333c4b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/third_party/nspr/prtime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
#include <ctype.h>
#include <errno.h> /* for EINVAL */
#include <limits.h>
#include <stddef.h>
#include <string.h>
#include <time.h>

Expand Down

0 comments on commit 333c4b5

Please sign in to comment.