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

Unified Diff: runtime/platform/globals.h

Issue 10539151: Fix includes to unbreak the Windows build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 | runtime/vm/heap_profiler.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 67439a499195af3b73e6b8bcd32980051fdc9a59..a7bd7d31b8d1e4b2a70b0993baacf118dbb09815 100644
--- a/runtime/platform/globals.h
+++ b/runtime/platform/globals.h
@@ -21,10 +21,12 @@
#define NOMCX
#include <windows.h>
+#include <winsock2.h>
#include <Rpc.h>
#endif
#if !defined(_WIN32)
+#include <arpa/inet.h>
#include <inttypes.h>
#include <stdint.h>
#include <unistd.h>
@@ -39,8 +41,6 @@
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
-#include <cstdlib>
-#include <sstream>
#if defined(_WIN32)
#include "platform/c99_support_win.h"
@@ -206,7 +206,7 @@ private: \
public: \
void operator delete(void* pointer) { \
fprintf(stderr, "unreachable code\n"); \
- std::abort(); \
+ abort(); \
} \
private: \
void* operator new(size_t size);
« no previous file with comments | « no previous file | runtime/vm/heap_profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698