]> git.saurik.com Git - wxWidgets.git/commitdiff
* Add my name to authors as the new maintainer.
authorDavid Elliott <dfe@tgwbd.org>
Sun, 18 Jan 2004 21:39:17 +0000 (21:39 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Sun, 18 Jan 2004 21:39:17 +0000 (21:39 +0000)
* Include wxWindows header files in the standard manner.
* Use the new wxAppTraits::CreateGSocket() method.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/gsocket.cpp

index edf43f5a06130440ca374e081a84b2c9b83a097a..33785cc31f93aff3bff0fe5796cee6c673c339ea 100644 (file)
@@ -1,17 +1,20 @@
 /* -------------------------------------------------------------------------
  * Project: GSocket (Generic Socket) for WX
  * Name:    gsocket.c
- * Authors: Guilhem Lavaux,
- *          Guillermo Rodriguez Garcia <guille@iies.es> (maintainer)
+ * Authors: David Elliott (C++ conversion, maintainer)
+ *          Guilhem Lavaux,
+ *          Guillermo Rodriguez Garcia <guille@iies.es>
  * Purpose: GSocket main Unix and OS/2 file
  * Licence: The wxWindows licence
  * CVSID:   $Id$
  * -------------------------------------------------------------------------
  */
 
-#ifndef __GSOCKET_STANDALONE__
-#include "wx/setup.h"
-#endif
+#include "wx/wxprec.h"
+#ifndef WX_PRECOMP
+    #include "wx/app.h"
+    #include "wx/apptrait.h"
+#endif //ndef WX_PRECOMP
 
 #if defined(__VISAGECPP__)
 /* Seems to be needed by Visual Age C++, though I don't see how it manages
@@ -1401,7 +1404,7 @@ void GSocketBSD::Detected_Write()
 /* Compatibility functions for GSocket */
 GSocket *GSocket_new(void)
 {
-    GSocket *newsocket = new GSocketBSDGUIShim();
+    GSocket *newsocket = wxTheApp->GetTraits()->CreateGSocket();
     if(newsocket->IsOk())
         return newsocket;
     delete newsocket;