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

Unified Diff: runtime/bin/socket.h

Issue 10014037: Fix win32 Socket test errors (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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/bin/socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket.h
===================================================================
--- runtime/bin/socket.h (revision 6377)
+++ runtime/bin/socket.h (working copy)
@@ -7,10 +7,20 @@
#include "bin/builtin.h"
#include "bin/utils.h"
+
#include "platform/globals.h"
#include "platform/thread.h"
+// Declare the OS-specific types ahead of defining the generic class.
+#if defined(TARGET_OS_LINUX)
+#include "bin/socket_linux.h"
+#elif defined(TARGET_OS_MACOS)
+#include "bin/socket_macos.h"
+#elif defined(TARGET_OS_WINDOWS)
+#include "bin/socket_win.h"
+#else
+#error Unknown target os.
+#endif
-#define DART_INET_ADDRSTRLEN 16
class Socket {
public:
« no previous file with comments | « no previous file | runtime/bin/socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698