Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2575)

Unified Diff: runtime/platform/globals.h

Issue 10928013: Fix build break on Win32 and MacOS related to printf format string checks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/eventhandler_macos.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/globals.h
diff --git a/runtime/platform/globals.h b/runtime/platform/globals.h
index e75a45b9e3109d748edf655570509b8e324f2bb3..ef776815cd23424595c12c61ce54440f8fa06425 100644
--- a/runtime/platform/globals.h
+++ b/runtime/platform/globals.h
@@ -123,10 +123,26 @@
#define PRIdPTR DART_PRINTF_PTR_PREFIX "d"
#endif
+#if !defined(PRIuPTR)
+#define PRIuPTR DART_PRINTF_PTR_PREFIX "u"
+#endif
+
#if !defined(PRIxPTR)
#define PRIxPTR DART_PRINTF_PTR_PREFIX "x"
#endif
+#if !defined(PRId64)
+#define PRId64 I64d
+#endif
+
+#if !defined(PRIu64)
+#define PRIu64 I64u
+#endif
+
+#if !defined(PRIx64)
+#define PRIx64 I64x
+#endif
+
#endif // defined(TARGET_OS_WINDOWS)
« no previous file with comments | « runtime/bin/eventhandler_macos.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698