From: David Elliott Date: Mon, 16 Aug 2004 02:43:04 +0000 (+0000) Subject: Provide implementation for GSocket_new X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f5d5bd1ddc2800b6191b862ac67e77d18c814571 Provide implementation for GSocket_new git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/gsocket.cpp b/src/mac/carbon/gsocket.cpp index f7af7a1ca6..c8c8586d3a 100644 --- a/src/mac/carbon/gsocket.cpp +++ b/src/mac/carbon/gsocket.cpp @@ -1163,6 +1163,16 @@ int GSocket::Send_Dgram(const char *buffer, int size) return ret; } +/* Compatibility functions for GSocket */ +GSocket *GSocket_new(void) +{ + GSocket *newsocket = new GSocket(); + if(newsocket->IsOk()) + return newsocket; + delete newsocket; + return NULL; +} + /* * -------------------------------------------------------------------------