]> git.saurik.com Git - wxWidgets.git/commitdiff
Prepare for GSocket C->C++ migration
authorDavid Elliott <dfe@tgwbd.org>
Tue, 3 Aug 2004 03:35:52 +0000 (03:35 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Tue, 3 Aug 2004 03:35:52 +0000 (03:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/appcmn.cpp

index 20699cb6885d73bb33d80f16132e0acf24e67d9e..f1ea7446085b3ee7bf5f8c78c63ae9cac9cb7912 100644 (file)
@@ -588,6 +588,10 @@ void wxGUIAppTraitsBase::RemoveFromPendingDelete(wxObject *object)
 
 GSocketGUIFunctionsTable* wxGUIAppTraitsBase::GetSocketGUIFunctionsTable()
 {
+#if defined(__WINDOWS__) && defined(wxUSE_GSOCKET_CPLUSPLUS)
+    static GSocketGUIFunctionsTableConcrete table;
+    return &table;
+#else
 #if defined(__WXMAC__) && !defined(__DARWIN__)
     // NB: wxMac CFM does not have any GUI-specific functions in gsocket.c and
     //     so it doesn't need this table at all
@@ -608,6 +612,7 @@ GSocketGUIFunctionsTable* wxGUIAppTraitsBase::GetSocketGUIFunctionsTable()
     };
     return &table;
 #endif // !__WXMAC__ || __DARWIN__
+#endif // defined(__WINDOWS__) && defined(wxUSE_GSOCKET_CPLUSPLUS)
 }
 
 #endif