]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/socket.cpp
use of div_t.quot and div_t.rem were changed to / and %
[wxWidgets.git] / src / common / socket.cpp
index e4b086669bb1bc3b730f8cb3a7aea6988c5ba362..df34996012728eb06d49c1b7718944943d79226d 100644 (file)
@@ -905,5 +905,22 @@ void wxSocketEvent::CopyObject(wxObject& obj_d) const
   event->m_socket = m_socket;
 }
 
+// --------------------------------------------------------------------------
+// wxSocketModule
+// --------------------------------------------------------------------------
+class WXDLLEXPORT wxSocketModule: public wxModule {
+  DECLARE_DYNAMIC_CLASS(wxSocketModule)
+ public:
+  bool OnInit() {
+    GSocket_Init();
+    return TRUE;
+  }
+  void OnExit() {
+    GSocket_Done();
+  }
+};
+
+IMPLEMENT_DYNAMIC_CLASS(wxSocketModule, wxModule)
+
 #endif
   // wxUSE_SOCKETS