Provide implementation for GSocket_new

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott 2004-08-16 02:43:04 +00:00
parent fe942d6f1d
commit f5d5bd1ddc

View File

@ -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;
}
/*
* -------------------------------------------------------------------------