From 5c2896013b8be85955c6f5155deb1aec467e00eb Mon Sep 17 00:00:00 2001 From: David Elliott Date: Sun, 18 Jan 2004 21:39:17 +0000 Subject: [PATCH] * Add my name to authors as the new maintainer. * 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 | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index edf43f5a06..33785cc31f 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -1,17 +1,20 @@ /* ------------------------------------------------------------------------- * Project: GSocket (Generic Socket) for WX * Name: gsocket.c - * Authors: Guilhem Lavaux, - * Guillermo Rodriguez Garcia (maintainer) + * Authors: David Elliott (C++ conversion, maintainer) + * Guilhem Lavaux, + * Guillermo Rodriguez Garcia * 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; -- 2.47.2