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

Unified Diff: runtime/platform/globals.h

Issue 1234953003: Add STDOUT_FILENO, etc., for windows build. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | no next file » | 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 cdca889f7bc2a868d9ec5de00435c5d237e5d88e..cc6612ea8cd90d4b0d23d28f51316ff726fb6881 100644
--- a/runtime/platform/globals.h
+++ b/runtime/platform/globals.h
@@ -593,6 +593,12 @@ static inline T ReadUnaligned(const T* ptr) {
#define PRINTF_ATTRIBUTE(string_index, first_to_check)
#endif
+#if defined(_WIN32)
+#define STDIN_FILENO 0
+#define STDOUT_FILENO 1
+#define STDERR_FILENO 2
+#endif
+
} // namespace dart
#endif // PLATFORM_GLOBALS_H_
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698