]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/socket.cpp
added wxDynamicObject (kind of delegate, docs to come once this has calmed down)
[wxWidgets.git] / src / common / socket.cpp
index 60bbc1f48d8abd9b4354b7ee695d9b52d6207700..18030b71e01993f56f008cef88330ece69f37f59 100644 (file)
@@ -13,7 +13,7 @@
 // Declarations
 // ==========================================================================
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "socket.h"
 #endif
 
@@ -126,6 +126,12 @@ bool wxSocketBase::Initialize()
 {
     if ( !m_countInit++ )
     {
+        wxAppTraits *traits = wxAppConsole::GetInstance() ?
+                              wxAppConsole::GetInstance()->GetTraits() : NULL;
+        GSocketGUIFunctionsTable *functions = 
+            traits ? traits->GetSocketGUIFunctionsTable() : NULL;
+        GSocket_SetGUIFunctions(functions);
+        
         if ( !GSocket_Init() )
         {
             m_countInit--;