Delete unused format specifier macros for NSInteger and NSUInteger

Bug: webrtc:10852
Change-Id: I0f8ba32b3f22ebd1bb85602daeebd34fb3d8c544
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/148441
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Oleh Prypin <oprypin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28792}
This commit is contained in:
Oleh Prypin
2019-08-07 13:25:31 +02:00
committed by Commit Bot
parent 83bbe91398
commit b6685420c4

View File

@ -43,34 +43,6 @@
#define PRIuS "zu" #define PRIuS "zu"
#endif #endif
// The size of NSInteger and NSUInteger varies between 32-bit and 64-bit
// architectures and Apple does not provides standard format macros and
// recommends casting. This has many drawbacks, so instead define macros
// for formatting those types.
#if defined(WEBRTC_MAC)
#if defined(WEBRTC_ARCH_64_BITS)
#if !defined(PRIdNS)
#define PRIdNS "ld"
#endif
#if !defined(PRIuNS)
#define PRIuNS "lu"
#endif
#if !defined(PRIxNS)
#define PRIxNS "lx"
#endif
#else // defined(WEBRTC_ARCH_64_BITS)
#if !defined(PRIdNS)
#define PRIdNS "d"
#endif
#if !defined(PRIuNS)
#define PRIuNS "u"
#endif
#if !defined(PRIxNS)
#define PRIxNS "x"
#endif
#endif
#endif // defined(WEBRTC_MAC)
#else // WEBRTC_WIN #else // WEBRTC_WIN
#include <inttypes.h> #include <inttypes.h>