Delete shim of PRId64 et al. on Windows

It should be present since MSVC 2013.

This is a port of 08e78a4733

Bug: webrtc:10852
Change-Id: Ie65fc74e11597e91aefacc13539218e3a5d7502f
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/148443
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Oleh Prypin <oprypin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28805}
This commit is contained in:
Oleh Prypin 2019-08-07 13:55:14 +02:00 committed by Commit Bot
parent 0d210ee2f6
commit 383adc025a

View File

@ -45,20 +45,8 @@
#include <inttypes.h>
// These are being defined without the RTC_ prefix because this is just filling
// the holes from what's supposed to be already present as part of the C
// standard, but missing on older MSVC versions.
#if !defined(PRId64)
#define PRId64 "I64d"
#endif
#if !defined(PRIu64)
#define PRIu64 "I64u"
#endif
#if !defined(PRIx64)
#define PRIx64 "I64x"
#if !defined(PRId64) || !defined(PRIu64) || !defined(PRIx64)
#error "inttypes.h provided by win toolchain should define these."
#endif
// PRI*64 were added in MSVC 2013, while "%zu" is supported since MSVC 2015