Bug 965022 - Introduce a PRIuSIZE macro for printing std::size_t. r=jrmuizel
authorBotond Ballo <botond@mozilla.com>
Mon, 25 Aug 2014 18:28:04 -0400
changeset 202275 a54e395d3945818d727ec20a48e8978af12af663
parent 202274 fe235a6881ca6510ea421b937f6fc3a8f427a0ab
child 202276 d60a7e8582b122dbc4b5142313b65d72af32ba30
push id48368
push userbballo@mozilla.com
push dateThu, 28 Aug 2014 20:43:07 +0000
treeherdermozilla-inbound@d60a7e8582b1 [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_ */