Bug 965022 - Introduce a PRIuSIZE macro for printing std::size_t. r=jrmuizel
☠☠ backed out by 894b7372561d ☠ ☠
authorBotond Ballo <botond@mozilla.com>
Mon, 25 Aug 2014 18:28:04 -0400
changeset 201733 a34ae046c94729021676108c4c69e04fcaa3c3aa
parent 201732 f747fd154739dbf37461c84bf41b365d9463ea44
child 201734 24251d4da0191cc8121b9c693c17aaf35701e717
push id27380
push userkwierso@gmail.com
push dateWed, 27 Aug 2014 00:50:11 +0000
treeherdermozilla-central@83289be2cd12 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs965022
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 965022 - Introduce a PRIuSIZE macro for printing std::size_t. r=jrmuizel
mfbt/IntegerPrintfMacros.h
--- a/mfbt/IntegerPrintfMacros.h
+++ b/mfbt/IntegerPrintfMacros.h
@@ -54,9 +54,14 @@
 #  undef  PRIuPTR      /* uintptr_t */
 #  define PRIuPTR "u"  /* uintptr_t */
 #  undef  PRIxPTR      /* uintptr_t */
 #  define PRIxPTR "x"  /* uintptr_t */
 #  undef  PRIXPTR      /* uintptr_t */
 #  define PRIXPTR "X"  /* uintptr_t */
 #endif
 
+/**
+ * For printing size_t.
+ */
+#define PRIuSIZE PRIuPTR
+
 #endif  /* mozilla_IntegerPrintfMacros_h_ */