]> git.saurik.com Git - wxWidgets.git/commitdiff
wxMac CFM never has a GSocketGUIFunctionsTable
authorDavid Elliott <dfe@tgwbd.org>
Fri, 6 Aug 2004 19:28:14 +0000 (19:28 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Fri, 6 Aug 2004 19:28:14 +0000 (19:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/appcmn.cpp

index ff6aada11d7ea82efbdfa740b1df0eb3fdef9f87..42d33f7c79105c1b5a2d80dd00400e06448af559 100644 (file)
@@ -588,15 +588,15 @@ void wxGUIAppTraitsBase::RemoveFromPendingDelete(wxObject *object)
 
 GSocketGUIFunctionsTable* wxGUIAppTraitsBase::GetSocketGUIFunctionsTable()
 {
-#if 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
     return NULL;
 #else // !__WXMAC__ || __DARWIN__
+#if defined(wxUSE_GSOCKET_CPLUSPLUS)
+    static GSocketGUIFunctionsTableConcrete table;
+    return &table;
+#else
     static GSocketGUIFunctionsTable table =
     {
         _GSocket_GUI_Init,
@@ -611,8 +611,8 @@ GSocketGUIFunctionsTable* wxGUIAppTraitsBase::GetSocketGUIFunctionsTable()
         _GSocket_Disable_Events
     };
     return &table;
-#endif // !__WXMAC__ || __DARWIN__
 #endif // defined(wxUSE_GSOCKET_CPLUSPLUS)
+#endif // !__WXMAC__ || __DARWIN__
 }
 
 #endif