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

Unified Diff: runtime/platform/inttypes_support_win.h

Issue 10909103: Move inttypes.h compatibility definitions for Win32 out of globals.h. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove uneccessary conditionals 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/platform/globals.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/inttypes_support_win.h
diff --git a/runtime/platform/inttypes_support_win.h b/runtime/platform/inttypes_support_win.h
index 1d26ef16eecc33b5b6e9317b3841365bab4e726d..34d83a45a0e088c084e0b96457deb9c6385776d2 100644
--- a/runtime/platform/inttypes_support_win.h
+++ b/runtime/platform/inttypes_support_win.h
@@ -14,4 +14,14 @@ typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
typedef unsigned __int64 uint64_t;
+// Printf format specifiers for intptr_t and uintptr_t.
+#define PRIdPTR "Id"
+#define PRIuPTR "Iu"
+#define PRIxPTR "Ix"
+
+// Printf format specifiers for int64_t and uint64_t.
+#define PRId64 "I64d"
+#define PRIu64 "I64u"
+#define PRIx64 "I64x"
+
#endif // PLATFORM_INTTYPES_SUPPORT_WIN_H_
« no previous file with comments | « runtime/platform/globals.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698