* 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
/* -------------------------------------------------------------------------
* Project: GSocket (Generic Socket) for WX
* Name: gsocket.c
/* -------------------------------------------------------------------------
* 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$
* -------------------------------------------------------------------------
*/
* 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
#if defined(__VISAGECPP__)
/* Seems to be needed by Visual Age C++, though I don't see how it manages
/* Compatibility functions for GSocket */
GSocket *GSocket_new(void)
{
/* Compatibility functions for GSocket */
GSocket *GSocket_new(void)
{
- GSocket *newsocket = new GSocketBSDGUIShim();
+ GSocket *newsocket = wxTheApp->GetTraits()->CreateGSocket();
if(newsocket->IsOk())
return newsocket;
delete newsocket;
if(newsocket->IsOk())
return newsocket;
delete newsocket;