summaryrefslogtreecommitdiffstats
path: root/third_party/libjingle/overrides/talk/base/win32socketinit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libjingle/overrides/talk/base/win32socketinit.cc')
-rw-r--r--third_party/libjingle/overrides/talk/base/win32socketinit.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/third_party/libjingle/overrides/talk/base/win32socketinit.cc b/third_party/libjingle/overrides/talk/base/win32socketinit.cc
new file mode 100644
index 0000000..2a05f02
--- /dev/null
+++ b/third_party/libjingle/overrides/talk/base/win32socketinit.cc
@@ -0,0 +1,22 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Redirect Libjingle's winsock initialization activity into Chromium's
+// singleton object that managest precisely that for the browser.
+
+#include "talk/base/win32socketinit.h"
+
+#include "net/base/winsock_init.h"
+
+#ifndef WIN32
+#error "Only compile this on Windows"
+#endif
+
+namespace talk_base {
+
+void EnsureWinsockInit() {
+ net::EnsureWinsockInit();
+}
+
+} // namespace talk_base