X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/948c96efa139d919e03cfa699d3d4a4258876d82..8d3b6b8aa1cc0d2f927cedd36d490d412ed3da29:/src/mac/carbon/gsocket.cpp?ds=sidebyside diff --git a/src/mac/carbon/gsocket.cpp b/src/mac/carbon/gsocket.cpp index 20459b7d0d..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; +} + /* * ------------------------------------------------------------------------- @@ -1323,9 +1333,9 @@ GSocketError GAddress_INET_SetHostAddress(GAddress *address, struct service_entry { - char * name ; + const char * name ; unsigned short port ; - char * protocol ; + const char * protocol ; } ; typedef struct service_entry service_entry ;