X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e637936e59be12938e4b020798bc1e4474cb4ba..23ad132ca3c6a24adab549e21d9cfc30ddc80e6d:/src/mac/carbon/gsocket.cpp 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; +} + /* * -------------------------------------------------------------------------